X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/e1a2167421a6b3538a405ec037c72777163fb949..c8256e579ea1a9e840619e1dade8f18353db7973:/models.py?ds=sidebyside diff --git a/models.py b/models.py index 464b3b5..9210e1b 100644 --- a/models.py +++ b/models.py @@ -125,7 +125,7 @@ class CollectionMember(models.Model): member = generic.GenericForeignKey('member_content_type', 'member_object_id') def __unicode__(self): - return '%s - %s' % (self.collection, self.member) + return u'%s - %s' % (self.collection, self.member) class TreeManager(models.Manager): @@ -290,6 +290,9 @@ class File(Node): response = HttpResponse(wrapper, content_type=self.mimetype) response['Content-Length'] = self.file.size return response + + def __unicode__(self): + return self.file class Template(TreeModel):