description news availability management from BO
This commit is contained in:
parent
0a25ec3e7c
commit
b34ab11fd8
18
apps/news/migrations/0044_auto_20191216_2044.py
Normal file
18
apps/news/migrations/0044_auto_20191216_2044.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 2.2.7 on 2019-12-16 20:44
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('news', '0043_auto_20191216_1920'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='news',
|
||||
old_name='description_to_locale_is_active',
|
||||
new_name='locale_to_description_is_active',
|
||||
),
|
||||
]
|
||||
|
|
@ -179,7 +179,7 @@ class News(GalleryModelMixin, BaseAttributes, TranslatedFieldsMixin, HasTagsMixi
|
|||
description = TJSONField(blank=True, null=True, default=None,
|
||||
verbose_name=_('description'),
|
||||
help_text='{"en-GB":"some text"}')
|
||||
description_to_locale_is_active = HStoreField(null=True, default=dict, blank=True,
|
||||
locale_to_description_is_active = HStoreField(null=True, default=dict, blank=True,
|
||||
verbose_name=_('Is description for certain locale active'),
|
||||
help_text='{"en-GB": true, "fr-FR": false}')
|
||||
start = models.DateTimeField(blank=True, null=True, default=None,
|
||||
|
|
|
|||
|
|
@ -182,6 +182,7 @@ class NewsBackOfficeBaseSerializer(NewsBaseSerializer):
|
|||
'backoffice_title',
|
||||
'subtitle',
|
||||
'slugs',
|
||||
'locale_to_description_is_active',
|
||||
'is_published',
|
||||
'duplication_date',
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user