Skip to content
Snippets Groups Projects
Verified Commit 6bc51432 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Use primary DB when migrating task tags

parent 664288b0
No related branches found
No related tags found
1 merge request!1925Use primary DB when migrating task tags
......@@ -5,7 +5,7 @@ import arkindex.project.fields
def comma_sep_char_to_list(apps, schema_editor):
Task = apps.get_model("ponos", "Task")
tasks_attrs = Task.objects.values_list("id", "old_tags")
tasks_attrs = Task.objects.using('default').values_list("id", "old_tags")
Task.objects.bulk_update(
(
Task(
......@@ -19,7 +19,7 @@ def comma_sep_char_to_list(apps, schema_editor):
def revert_comma_sep_char_to_list(apps, schema_editor):
Task = apps.get_model("ponos", "Task")
tasks_attrs = Task.objects.values_list("id", "tags")
tasks_attrs = Task.objects.using('default').values_list("id", "tags")
Task.objects.bulk_update(
(
Task(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment