0.0.31 page schemes
This commit is contained in:
@@ -43,8 +43,18 @@ def preSave_BlockPluginPresentation(sender, instance, **kwargs):
|
||||
pre_save.connect(preSave_BlockPluginPresentation, sender=BlockPluginPresentation, dispatch_uid='pre_save_connect')
|
||||
|
||||
|
||||
page_scheme_choices = (
|
||||
('projecting', _('Проектирование')),
|
||||
('services', _('Разработка')),
|
||||
('plugin', _('Плагин')),
|
||||
)
|
||||
|
||||
|
||||
class Section(BaseModelViewPage):
|
||||
|
||||
page_scheme = models.CharField(
|
||||
max_length=100, verbose_name=_('Схема страницы'), choices=page_scheme_choices, default='projecting')
|
||||
|
||||
plugin_presentation = GenericRelation('ServicesApp.BlockPluginPresentation',
|
||||
related_query_name='grel_%(class)s_for_block_plugin_presentation')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user