Closes #913: Added headers to object CSV exports

This commit is contained in:
Jeremy Stretch
2017-06-09 16:24:59 -04:00
parent 8a849ebeff
commit 08883d86ef
6 changed files with 44 additions and 2 deletions

View File

@@ -291,6 +291,7 @@ class Secret(CreatedUpdatedModel):
hash = models.CharField(max_length=128, editable=False)
plaintext = None
csv_headers = ['device', 'role', 'name', 'plaintext']
class Meta:
ordering = ['device', 'role', 'name']