CONT: fixed the previous changes.

This commit is contained in:
2019-01-30 16:35:37 +01:00
parent 7667277862
commit f0e225c5fd
11 changed files with 79 additions and 59 deletions

View File

@@ -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)