UPD: more cool participant admin stuff.

This commit is contained in:
2019-06-04 15:54:13 +02:00
parent 9104d69dd7
commit 61605a205c
9 changed files with 258 additions and 85 deletions

13
dav_base/validators.py Normal file
View File

@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
from django.core.validators import RegexValidator
from django.utils.translation import ugettext_lazy as _
DAVNumberValidator = RegexValidator(r'^'
r'([0-9]{1,10}/[0-9]{2,10}/)?'
r'[0-9]{1,10}'
r'(\*[0-9]{1,10})?'
r'(\*[0-9]{4}\*[0-9]{4})?'
r'([* ][0-9]{8})?'
r'$',
_(u'Ungültiges Format.'))