CONT: fixed the previous changes.
This commit is contained in:
@@ -3,12 +3,12 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
from dav_events.workflow import DEFAULT_EVENT_STATI
|
||||
from dav_events.models.eventstatus import get_or_create_event_status
|
||||
|
||||
|
||||
def create_stati(apps, schema_editor):
|
||||
l = ('draft', 'submitted', 'accepted', 'publishing', 'published', 'expired')
|
||||
for c in l:
|
||||
for c in DEFAULT_EVENT_STATI.keys():
|
||||
get_or_create_event_status(c)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user