mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 21:14:03 +03:00
Update sites -> migrations
This commit is contained in:
parent
b6e5a995ef
commit
948200f4cf
|
@ -14,16 +14,18 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Site',
|
name='Site',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
|
||||||
('domain', models.CharField(max_length=100, verbose_name='domain name', validators=[django.contrib.sites.models._simple_domain_name_validator])),
|
('domain', models.CharField(verbose_name='domain name', max_length=100, validators=[django.contrib.sites.models._simple_domain_name_validator])),
|
||||||
('name', models.CharField(max_length=50, verbose_name='display name')),
|
('name', models.CharField(verbose_name='display name', max_length=50)),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'ordering': ('domain',),
|
|
||||||
'db_table': 'django_site',
|
|
||||||
'verbose_name': 'site',
|
|
||||||
'verbose_name_plural': 'sites',
|
'verbose_name_plural': 'sites',
|
||||||
|
'verbose_name': 'site',
|
||||||
|
'db_table': 'django_site',
|
||||||
|
'ordering': ('domain',),
|
||||||
},
|
},
|
||||||
bases=(models.Model,),
|
managers=[
|
||||||
|
(b'objects', django.contrib.sites.models.SiteManager()),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user