UidValidator: fix to actually validate.

master
Tom Hacohen 5 years ago
parent e94e2f9d70
commit 10b9d33ffe

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

Loading…
Cancel
Save