Skip to content

Commit 720a6f0

Browse files
committed
the unicode representation now uses the file's name
1 parent 297bc51 commit 720a6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileupload/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Picture(models.Model):
1212
slug = models.SlugField(max_length=50, blank=True)
1313

1414
def __unicode__(self):
15-
return self.file
15+
return self.file.name
1616

1717
@models.permalink
1818
def get_absolute_url(self):

0 commit comments

Comments
 (0)