Skip to content

Commit ce4f006

Browse files
atlasatlas
authored andcommitted
Fixed and test migrations
1 parent 5088a1c commit ce4f006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openwisp_controller/config/migrations/0056_ow_zt-to-global.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.db import migrations
22
import json
33

4-
def change_owzt_to_global(apps):
4+
def change_owzt_to_global(apps, schema_editor):
55
Template = apps.get_model('config', 'Template')
66
for template in Template.objects.all():
77
config = json.loads(template.config)
@@ -11,7 +11,7 @@ def change_owzt_to_global(apps):
1111
item['name'] = 'global'
1212

1313
class Migration(migrations.Migration):
14-
dependencies = [('config', '0056_ow_zt-to-global')]
14+
dependencies = [('config', '0055_alter_config_status')]
1515

1616
operations = [
1717
migrations.RunPython(change_owzt_to_global, reverse_code=migrations.RunPython.noop)

0 commit comments

Comments
 (0)