0.0.31 page schemes

This commit is contained in:
SDE
2023-12-06 12:58:04 +03:00
parent 5937d9e380
commit 183000c979
12 changed files with 104 additions and 39 deletions

View File

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