Closed GoogleCodeExporter closed 9 years ago
Also add this to all other models classes but change it from:
def __str__(self):
return self.title
To:
def __str__(self):
return self.name
GalleryUpload may need something different since it doesnt have a title or a
name.
Maybe something like this would work:
def __str__(self):
return 'Gallery Upload #' + self.id
Original comment by Blis...@gmail.com
on 16 Mar 2008 at 7:29
Django trunk has been merge with Unicode branch so now using:
def __unicode__(self):
return self.title
Original comment by remigi...@gmail.com
on 16 Mar 2008 at 9:28
For now __str__ returns __unicode__ for backwards compatibility with 9.6.
Please let
me know if this causes any issues.
Original comment by justin.d...@gmail.com
on 18 Mar 2008 at 1:26
Original issue reported on code.google.com by
Blis...@gmail.com
on 16 Mar 2008 at 7:22