Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entry.first_richtext works only with RichTextContent #50

Open
winsento opened this issue May 21, 2015 · 1 comment
Open

entry.first_richtext works only with RichTextContent #50

winsento opened this issue May 21, 2015 · 1 comment

Comments

@winsento
Copy link

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',))

See pull #49

@sbaechler
Copy link
Contributor

The RichTextContent and MediaFileContent models are hard coded. Maybe we could put the method into a class and make that class replaceable. This way we could use Django Filer or RedactorContents with Elephantblog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants