2019-01-02 23:54:54 +00:00
|
|
|
# -*- 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):
|
2019-11-04 16:55:03 +00:00
|
|
|
Role = apps.get_model("machines", "Role")
|
2019-01-02 23:54:54 +00:00
|
|
|
|
2019-11-04 16:55:03 +00:00
|
|
|
for role in Role.objects.filter(specific_role="dns-recursif-server"):
|
|
|
|
role.specific_role = "dns-recursive-server"
|
2019-01-02 23:54:54 +00:00
|
|
|
role.save()
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-11-04 16:55:03 +00:00
|
|
|
dependencies = [("machines", "0098_auto_20190102_1745")]
|
2019-01-02 23:54:54 +00:00
|
|
|
|
2019-11-04 16:55:03 +00:00
|
|
|
operations = [migrations.RunPython(migrate)]
|