RuntimeWarning when adding cleanse=True to create_content_type #280

Closed
memee opened this Issue Apr 28, 2012 · 3 comments

Projects

None yet

3 participants

@memee
memee commented Apr 28, 2012

Django==1.4
When I add cleanse=True attr to create_content_type

Page.create_content_type(RichTextContent, cleanse=True)

I get this warning:

/site-packages/feincms/models.py:637: RuntimeWarning: Cannot create content type using feincms.content.richtext.models.RichTextContent for feincms.module.page.models.Page, because richtextcontent_set is already taken.
  RuntimeWarning)
Contributor

Did you call Page.create_content_type(RichTextContent) twice in models.py?

memee commented Apr 29, 2012

No, just once

Owner

This happens when the module with the create_content_type call inside is imported twice (f.e. as myproject.myapp.models and myapp.models)

Nothing we can do about it in FeinCMS.

@matthiask matthiask closed this Jun 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment