Add missing validator to initial migration (#687)

This commit is contained in:
Henri Dickson 2024-01-04 10:59:26 -05:00 committed by GitHub
parent 798222dcdb
commit 2f4daa02bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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",