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):
response = HttpResponse(wrapper, content_type=self.mimetype)
response['Content-Length'] = self.file.size
return response
+
+ def __unicode__(self):
+ return self.file
class Template(TreeModel):