chore(): regenerated some migrations, small improvements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user