change field properties for Collection model
This commit is contained in:
parent
4ceb0e4d86
commit
4c9ea2e0e7
23
apps/collection/migrations/0014_auto_20191022_1242.py
Normal file
23
apps/collection/migrations/0014_auto_20191022_1242.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 2.2.4 on 2019-10-22 12:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collection', '0013_collection_slug'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='collection',
|
||||
name='end',
|
||||
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='end'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='guide',
|
||||
name='end',
|
||||
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='end'),
|
||||
),
|
||||
]
|
||||
|
|
@ -1,13 +1,11 @@
|
|||
from django.contrib.postgres.fields import JSONField
|
||||
from django.contrib.contenttypes.fields import ContentType
|
||||
|
||||
from utils.models import TJSONField
|
||||
from django.contrib.postgres.fields import JSONField
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from utils.models import ProjectBaseMixin, URLImageMixin
|
||||
from utils.models import TJSONField
|
||||
from utils.models import TranslatedFieldsMixin
|
||||
|
||||
from utils.querysets import RelatedObjectsCountMixin
|
||||
|
||||
|
||||
|
|
@ -24,7 +22,8 @@ class CollectionNameMixin(models.Model):
|
|||
class CollectionDateMixin(models.Model):
|
||||
"""CollectionDate mixin"""
|
||||
start = models.DateTimeField(_('start'))
|
||||
end = models.DateTimeField(_('end'))
|
||||
end = models.DateTimeField(blank=True, null=True, default=None,
|
||||
verbose_name=_('end'))
|
||||
|
||||
class Meta:
|
||||
"""Meta class"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user