X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/49c97b01f25be1831eedf7c615849bcb08142ea5..d628ad546e47a82fe341740e4a3defe546e2f140:/models.py diff --git a/models.py b/models.py index 26de321..88863b2 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): @@ -389,6 +389,9 @@ class Contentlet(models.Model): name = models.CharField(max_length=255) content = models.TextField() dynamic = models.BooleanField(default=False) + + def __unicode__(self): + return self.name class ContentReference(models.Model): @@ -397,6 +400,9 @@ class ContentReference(models.Model): content_type = models.ForeignKey(ContentType, verbose_name='Content type') content_id = models.PositiveIntegerField(verbose_name='Content ID') content = generic.GenericForeignKey('content_type', 'content_id') + + def __unicode__(self): + return self.name register_templatetags('philo.templatetags.containers')