~lamont/maas/bug-1356012

« back to all changes in this revision

Viewing changes to src/maasserver/migrations/builtin/maasserver/0023_add_rdns_mode.py

  • Committer: LaMont Jones
  • Date: 2016-01-28 22:11:38 UTC
  • Revision ID: lamont@canonical.com-20160128221138-8if0y7qlbctjdupu
Add migration for Subnet.rdns_mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
from __future__ import unicode_literals
 
3
 
 
4
from django.db import migrations, models
 
5
 
 
6
 
 
7
class Migration(migrations.Migration):
 
8
 
 
9
    dependencies = [
 
10
        ('maasserver', '0022_create_zone_serial_sequence'),
 
11
    ]
 
12
 
 
13
    operations = [
 
14
        migrations.AddField(
 
15
            model_name='subnet',
 
16
            name='rdns_mode',
 
17
            field=models.IntegerField(choices=[(0, 'Disabled'), (1, 'Enabled'), (2, 'Enabled, with rfc2317 glue zone.')], default=2),
 
18
        ),
 
19
    ]