SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 33f11b34 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Correct ORCID validator

parent b651a836
No related branches found
No related tags found
No related merge requests found
......@@ -18,5 +18,5 @@ class TimeStampedModel(models.Model):
abstract = True
orcid_validator = RegexValidator(r'^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}$',
orcid_validator = RegexValidator(r'^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]{1}$',
'Please follow the ORCID format, e.g.: 0000-0001-2345-6789')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment