feincms / feincms-elephantblog

A blog for FeinCMS
feinheit.ch/labs/
BSD 3-Clause "New" or "Revised" License
43 stars 38 forks source link

Fix entry_list_lookup_related with Django 1.8 #49

Closed matthiask closed 9 years ago

sbaechler commented 9 years ago

Thank You.

winsento commented 9 years ago

entry.first_richtext does not work if i use the contenttype other than RichTextContent

from redactor.fields import RedactorField
from elephantblog.models import Entry

class Content(models.Model):
    content = RedactorField(u'content', null=True, blank=True)
    class Meta:
        abstract = True
    def render(self, **kwargs):
        return self.content

Entry.create_content_type(Content, regions=('main',))