extra = 1
classes = ('collapse-closed',)
allow_add = True
+ fields = ('member_content_type', 'member_object_id', 'index',)
class CollectionAdmin(admin.ModelAdmin):
name = models.CharField(max_length=255)
content = models.TextField()
dynamic = models.BooleanField(default=False)
+
+ def __unicode__(self):
+ return self.name
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')
if 'page' in context:
container_content = self.get_container_content(context)
- if self.nodelist_main is None:
- self.nodelist_main
+ if not self.nodelist_main:
if container_content and self.as_var:
context[self.as_var] = container_content
return ''