We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 297bc51 commit 720a6f0Copy full SHA for 720a6f0
fileupload/models.py
@@ -12,7 +12,7 @@ class Picture(models.Model):
12
slug = models.SlugField(max_length=50, blank=True)
13
14
def __unicode__(self):
15
- return self.file
+ return self.file.name
16
17
@models.permalink
18
def get_absolute_url(self):
0 commit comments