0099_role_recursive_dns.py 569 Bytes
Newer Older
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2019-01-02 23:45
from __future__ import unicode_literals

from django.db import migrations, models


def migrate(apps, schema_editor):
    Role = apps.get_model('machines', 'Role')

    for role in Role.objects.filter(specific_role='dns-recursif-server'):
        role.specific_role = 'dns-recursive-server'
        role.save()


class Migration(migrations.Migration):

    dependencies = [
        ('machines', '0098_auto_20190102_1745'),
    ]

    operations = [
        migrations.RunPython(migrate),
    ]