Add missing validator to initial migration (#687)
This commit is contained in:
parent
798222dcdb
commit
2f4daa02bd
|
@ -9,6 +9,7 @@ from django.db import migrations, models
|
||||||
import core.snowflake
|
import core.snowflake
|
||||||
import core.uploads
|
import core.uploads
|
||||||
import stator.models
|
import stator.models
|
||||||
|
import users.models.domain
|
||||||
import users.models.follow
|
import users.models.follow
|
||||||
import users.models.identity
|
import users.models.identity
|
||||||
import users.models.inbox_message
|
import users.models.inbox_message
|
||||||
|
@ -58,7 +59,12 @@ class Migration(migrations.Migration):
|
||||||
fields=[
|
fields=[
|
||||||
(
|
(
|
||||||
"domain",
|
"domain",
|
||||||
models.CharField(max_length=250, primary_key=True, serialize=False),
|
models.CharField(
|
||||||
|
max_length=250,
|
||||||
|
primary_key=True,
|
||||||
|
serialize=False,
|
||||||
|
validators=[users.models.domain._domain_validator],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"service_domain",
|
"service_domain",
|
||||||
|
|
Loading…
Reference in New Issue