mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-10 22:03:09 +00:00
29 lines
853 B
Python
29 lines
853 B
Python
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from feincms.module.page.models import Page
|
|
from feincms.content.raw.models import RawContent
|
|
from feincms.content.richtext.models import RichTextContent
|
|
# Import the ``django-fobi`` widget.
|
|
from fobi.contrib.apps.feincms_integration.widgets import FobiFormWidget
|
|
|
|
Page.register_extensions('feincms.module.extensions.translations',)
|
|
|
|
# Register basic template.
|
|
Page.register_templates(
|
|
{
|
|
'title': _(u"Base template"),
|
|
'path': 'page/base.html',
|
|
'key': 'page_base',
|
|
'regions': (
|
|
('main', _(u"Main")),
|
|
('sidebar', _(u"Sidebar")),
|
|
)
|
|
},
|
|
)
|
|
|
|
# Standard content types
|
|
Page.create_content_type(RawContent)
|
|
Page.create_content_type(RichTextContent)
|
|
|
|
# Register the ``django-fobi`` widget.
|
|
Page.create_content_type(FobiFormWidget)
|