Commit 8c0b818e authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Allow none values for release_date fields

parent df1d5117
# Generated by Django 2.2.24 on 2021-11-29 20:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0036_auto_20211125_1203'),
]
operations = [
migrations.AlterField(
model_name='lesson',
name='release_date',
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='Date'),
),
migrations.AlterField(
model_name='unit',
name='release_date',
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='Date'),
),
]
......@@ -922,7 +922,9 @@ class Lesson(PositionedModel):
)
release_date = models.DateTimeField(
_('Date'),
default=timezone.now
null=True,
blank=True,
default=None,
)
collection_name = 'course'
......@@ -1019,7 +1021,9 @@ class Unit(PositionedModel):
)
release_date = models.DateTimeField(
_('Date'),
default=timezone.now
null=True,
blank=True,
default=None,
)
collection_name = 'lesson'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment