mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-22 05:26:28 +00:00
Add missing validator to initial migration (#687)
This commit is contained in:
parent
798222dcdb
commit
2f4daa02bd
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,7 @@ from django.db import migrations, models
|
|||
import core.snowflake
|
||||
import core.uploads
|
||||
import stator.models
|
||||
import users.models.domain
|
||||
import users.models.follow
|
||||
import users.models.identity
|
||||
import users.models.inbox_message
|
||||
|
@ -58,7 +59,12 @@ class Migration(migrations.Migration):
|
|||
fields=[
|
||||
(
|
||||
"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",
|
||||
|
|
Loading…
Reference in a new issue