Files
django-dav-events/dav_base/validators.py
heinzel 98a6fc3ce7
All checks were successful
buildbot/tox Build done.
try to make pylint happy
2022-06-08 00:08:09 +02:00

14 lines
569 B
Python

# -*- 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'$',
_('Ungültiges Format.'))