Deleted description field

This commit is contained in:
dormantman 2019-12-16 13:34:54 +03:00
parent def1372317
commit a9f5a5b98f
3 changed files with 8 additions and 4 deletions

View File

@ -20,4 +20,8 @@ class Migration(migrations.Migration):
name='start', name='start',
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='start'), field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='start'),
), ),
migrations.RemoveField(
model_name='collection',
name='description',
)
] ]

View File

@ -74,9 +74,9 @@ class Collection(ProjectBaseMixin, CollectionDateMixin,
block_size = JSONField( block_size = JSONField(
_('collection block properties'), null=True, blank=True, _('collection block properties'), null=True, blank=True,
default=None, help_text='{"width": "250px", "height":"250px"}') default=None, help_text='{"width": "250px", "height":"250px"}')
description = TJSONField( # description = TJSONField(
_('description'), null=True, blank=True, # _('description'), null=True, blank=True,
default=None, help_text='{"en-GB":"some text"}') # default=None, help_text='{"en-GB":"some text"}')
slug = models.SlugField(max_length=50, unique=True, slug = models.SlugField(max_length=50, unique=True,
verbose_name=_('Collection slug'), editable=True, null=True) verbose_name=_('Collection slug'), editable=True, null=True)
old_id = models.IntegerField(null=True, blank=True) old_id = models.IntegerField(null=True, blank=True)

View File

@ -34,7 +34,7 @@ class CollectionBackOfficeSerializer(CollectionBaseSerializer):
'country', 'country',
'country_id', 'country_id',
# 'block_size', # 'block_size',
'description', # 'description',
'slug', 'slug',
# 'start', # 'start',
# 'end', # 'end',