diff options
Diffstat (limited to 'ctrack/contrib/sites/migrations/0001_initial.py')
-rw-r--r-- | ctrack/contrib/sites/migrations/0001_initial.py | 46 |
1 files changed, 18 insertions, 28 deletions
diff --git a/ctrack/contrib/sites/migrations/0001_initial.py b/ctrack/contrib/sites/migrations/0001_initial.py index 304cd6d..fddaae2 100644 --- a/ctrack/contrib/sites/migrations/0001_initial.py +++ b/ctrack/contrib/sites/migrations/0001_initial.py @@ -1,42 +1,32 @@ +# Generated by Django 2.2.9 on 2020-02-18 16:05 + import django.contrib.sites.models -from django.contrib.sites.models import _simple_domain_name_validator from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [] + initial = True + + dependencies = [ + ] operations = [ migrations.CreateModel( - name="Site", + name='Site', fields=[ - ( - "id", - models.AutoField( - verbose_name="ID", - serialize=False, - auto_created=True, - primary_key=True, - ), - ), - ( - "domain", - models.CharField( - max_length=100, - verbose_name="domain name", - validators=[_simple_domain_name_validator], - ), - ), - ("name", models.CharField(max_length=50, verbose_name="display name")), + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('domain', models.CharField(max_length=100, unique=True, validators=[django.contrib.sites.models._simple_domain_name_validator], verbose_name='domain name')), + ('name', models.CharField(max_length=50, verbose_name='display name')), ], options={ - "ordering": ("domain",), - "db_table": "django_site", - "verbose_name": "site", - "verbose_name_plural": "sites", + 'verbose_name': 'site', + 'verbose_name_plural': 'sites', + 'db_table': 'django_site', + 'ordering': ('domain',), }, - bases=(models.Model,), - managers=[("objects", django.contrib.sites.models.SiteManager())], - ) + managers=[ + ('objects', django.contrib.sites.models.SiteManager()), + ], + ), ] |