Skip to content
Snippets Groups Projects
Commit 1a354320 authored by Jonathan Seguin's avatar Jonathan Seguin
Browse files

Show original filename and first 3 characters of hash in __str__ func

for datafile
parent 0cff282d
No related branches found
No related tags found
1 merge request!43Resolve "Expose unique ID for files"
......@@ -151,7 +151,7 @@ class DataFile(models.Model):
objects = DataFileManager()
def __str__(self):
return self.file.name
return "{} ({})".format(self.filename, self.file.name[:3])
@property
def filext(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment