From 2f4daa02bd82cb3ef8f4e93b4c54b111277f030c Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:59:26 -0500 Subject: [PATCH] Add missing validator to initial migration (#687) --- users/migrations/0001_initial.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/users/migrations/0001_initial.py b/users/migrations/0001_initial.py index 5bc7cc9..943b834 100644 --- a/users/migrations/0001_initial.py +++ b/users/migrations/0001_initial.py @@ -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",