chore(): regenerated some migrations, small improvements

This commit is contained in:
ITQ
2026-02-18 16:29:42 +03:00
parent 4a0f8bc020
commit d2c459d2e7
7 changed files with 47 additions and 60 deletions
@@ -1,4 +1,4 @@
# Generated by Django 5.2.11 on 2026-02-13 07:57
# Generated by Django 5.2.11 on 2026-02-14 09:55
import django.core.validators
import uuid
+2 -2
View File
@@ -7,7 +7,7 @@ from django.utils.translation import gettext_lazy as _
from apps.core.models import BaseModel
KEY_PATTERN = r"^[a-z][a-z0-9_]*$"
FLAG_KEY_PATTERN = r"^[A-Za-z][A-Za-z0-9_]*$"
class FeatureFlagType(models.TextChoices):
@@ -60,7 +60,7 @@ class FeatureFlag(BaseModel):
help_text=_("Unique identifier for the feature flag"),
validators=[
RegexValidator(
regex=KEY_PATTERN,
regex=FLAG_KEY_PATTERN,
message=(
"Key must start with a lowercase letter and contain only "
"lowercase letters, digits, and underscores."