Commit d0f4ab6d authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Add release_date_timezone to Unit

parent fae69d2e
......@@ -1006,6 +1006,8 @@ class Unit(PositionedModel):
('draft', _('Draft')),
('published', _('Published')),
)
TIMEZONE_CHOICES = zip(pytz.all_timezones, pytz.all_timezones)
title = models.CharField(
_('Title'),
max_length=128,
......@@ -1053,6 +1055,7 @@ class Unit(PositionedModel):
blank=True,
default=None,
)
release_date_timezone = models.CharField(max_length=255, default='UTC', blank=True, choices=TIMEZONE_CHOICES)
scheduled_task = GenericRelation(ScheduledTask, related_query_name='unit')
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