From 22d58078c979f838c4a1ba1c8fd7640702e36744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20N=C4=9Bmec?= Date: Wed, 20 Sep 2023 10:25:22 +0200 Subject: [PATCH] #197 fixed instagram username regex --- fiesta/apps/accounts/models/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiesta/apps/accounts/models/profile.py b/fiesta/apps/accounts/models/profile.py index 82591c3d..a65f59c8 100644 --- a/fiesta/apps/accounts/models/profile.py +++ b/fiesta/apps/accounts/models/profile.py @@ -138,7 +138,7 @@ class Gender(TextChoices): ) instagram = models.CharField( verbose_name=_("instagram username"), - validators=[RegexValidator(r"^[\w_-.]+$")], + validators=[RegexValidator(r"^[\w_.]+$")], blank=True, ) telegram = models.CharField(