Skip to content
0055_facility_facilityiprange.py 1.06 KiB
Newer Older
from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('course', '0054_add_auditor_role'),
    ]

    operations = [
        migrations.CreateModel(
            name='Facility',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
Dong Zhuang's avatar
Dong Zhuang committed
                ('identifier', models.CharField(help_text='Format is lower-case-with-hyphens. Do not use spaces.', unique=True, max_length=50)),
                ('description', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='FacilityIPRange',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('ip_range', models.CharField(max_length=200)),
                ('ip_range_description', models.CharField(max_length=100)),
                ('facility', models.ForeignKey(to='course.Facility', on_delete=models.CASCADE)),