Skip to content

Commit

Permalink
Fixed error in migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
abelardopardo committed Aug 20, 2019
1 parent ee14fec commit fd02eee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ontask/migrations/0001_squashed_0024_auto_20180925_1934.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def forwards(apps, schema_editor):
return
# Traverse the workflows and verify that the columns are in the same
# order than the columns in the workflow
Workflow = apps.get_model('workflow', 'Workflow')
Workflow = apps.get_model('ontask', 'Workflow')

for w in Workflow.objects.all():
if not w.is_table_in_db(w):
Expand Down
2 changes: 1 addition & 1 deletion ontask/migrations/0001_squashed_0062_auto_20190521_1802.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def add_columns_to_conditions(apps, schema_editor):
if schema_editor.connection.alias != 'default':
return

Workflow = apps.get_model('workflow', 'Workflow')
Workflow = apps.get_model('ontask', 'Workflow')
for workflow in Workflow.objects.all():
for action in workflow.actions.all():
for condition in action.conditions.all():
Expand Down

0 comments on commit fd02eee

Please sign in to comment.