From 10b9d33ffe95c4ab68ee8a784c1517a3327a6fcf Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 26 May 2020 16:13:18 +0300 Subject: [PATCH] UidValidator: fix to actually validate. --- django_etesync/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etesync/models.py b/django_etesync/models.py index edfb18d..98f57f2 100644 --- a/django_etesync/models.py +++ b/django_etesync/models.py @@ -21,7 +21,7 @@ from django.utils.functional import cached_property Base64Url256BitValidator = RegexValidator(regex=r'^[a-zA-Z0-9\-_]{43}$', message='Expected a 256bit base64url.') -UidValidator = RegexValidator(regex=r'[a-zA-Z0-9]', message='Not a valid UID') +UidValidator = RegexValidator(regex=r'^[a-zA-Z0-9]*$', message='Not a valid UID') class Collection(models.Model):