We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40062ca commit 5b5db6fCopy full SHA for 5b5db6f
openwisp_controller/config/migrations/0056_ow_zt_to_global.py
@@ -1,13 +1,12 @@
1
from django.db import migrations
2
-from django.db import migrations
3
4
5
def change_owzt_to_global(apps, schema_editor):
6
Template = apps.get_model('config', 'Template')
7
updated_templates = set()
8
for template in Template.objects.filter(
9
type='vpn', vpn__backend='openwisp_controller.vpn_backends.ZeroTier'
10
- ):
+ ).iterator():
11
if 'zerotier' in template.config:
12
for item in template.config.get('zerotier', []):
13
if item.get('name') == 'ow_zt':
0 commit comments