1
0
mirror of https://github.com/etesync/server synced 2024-12-29 10:48:07 +00:00

UidValidator: fix to actually validate.

This commit is contained in:
Tom Hacohen 2020-05-26 16:13:18 +03:00
parent e94e2f9d70
commit 10b9d33ffe

View File

@ -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):