0.0.21 how dev block
This commit is contained in:
@@ -30,7 +30,9 @@ class Admin_StackedInline_BlockPluginPresentation(Admin_Trans_GenericBaseIconSta
|
||||
(None, {
|
||||
'classes': [],
|
||||
'fields': [
|
||||
'pre_title', 'title', 'name', 'description', 'picture',
|
||||
'pre_title',
|
||||
# 'title',
|
||||
'name', 'description', 'picture',
|
||||
('but1_title', 'but1_icon', 'but1_url'),
|
||||
('but2_title', 'but2_icon', 'but2_url'),
|
||||
# ('order',),
|
||||
@@ -49,7 +51,8 @@ class Admin_Section(SuperModelAdmin, Admin_Trans_BaseModelViewPage):
|
||||
'classes': ['wide'],
|
||||
'fields': ('name',
|
||||
'url',
|
||||
'title', 'description', 'text',
|
||||
# 'title',
|
||||
'description', 'text',
|
||||
'picture',
|
||||
'order',
|
||||
)
|
||||
@@ -65,7 +68,8 @@ class Admin_Section(SuperModelAdmin, Admin_Trans_BaseModelViewPage):
|
||||
|
||||
list_display = [
|
||||
'id',
|
||||
'name', 'url', 'title',
|
||||
'name', 'url',
|
||||
# 'title',
|
||||
'order', 'modifiedDT', 'createDT'
|
||||
]
|
||||
|
||||
@@ -105,7 +109,8 @@ class Admin_Service(SuperModelAdmin, Admin_Trans_BaseModelViewPage):
|
||||
'section', 'parent_service',
|
||||
'name',
|
||||
'url',
|
||||
'title', 'description', 'text',
|
||||
# 'title',
|
||||
'description', 'text',
|
||||
'picture',
|
||||
'order',
|
||||
)
|
||||
@@ -121,16 +126,19 @@ class Admin_Service(SuperModelAdmin, Admin_Trans_BaseModelViewPage):
|
||||
|
||||
list_display = [
|
||||
'id',
|
||||
'name', 'url', 'title',
|
||||
'name', 'url', 'section', 'parent_service',
|
||||
# 'title',
|
||||
'order', 'modifiedDT', 'createDT'
|
||||
]
|
||||
|
||||
ordering = ['section', 'parent_service', 'order']
|
||||
|
||||
prepopulated_fields = {"url": ("name_en",)}
|
||||
|
||||
list_display_links = ['id']
|
||||
list_editable = ['order']
|
||||
|
||||
list_filter = ['modifiedDT', 'createDT']
|
||||
list_filter = ['section', 'parent_service', 'modifiedDT', 'createDT', ]
|
||||
search_fields = ['name', 'title']
|
||||
# filter_horizontal = ['options']
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 4.2.7 on 2023-11-28 14:51
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('ServicesApp', '0005_blockpluginpresentation_but1_icon_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='blockpluginpresentation',
|
||||
options={'verbose_name': 'Блок презентации плагина', 'verbose_name_plural': 'Блок презентации плагина'},
|
||||
),
|
||||
]
|
||||
@@ -35,7 +35,7 @@ class BlockPluginPresentation(Block_Abstract):
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Блок презентации плагина')
|
||||
verbose_name_plural = _('Блоки презентации плагина')
|
||||
verbose_name_plural = _('Блок презентации плагина')
|
||||
|
||||
|
||||
class Section(BaseModelViewPage):
|
||||
|
||||
Reference in New Issue
Block a user