Ticket #5368: allow_dot.patch
File allow_dot.patch, 1.1 KB (added by , 17 years ago) |
---|
-
django/core/validators.py
34 34 integer_re = re.compile(r'^-?\d+$') 35 35 ip4_re = re.compile(r'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$') 36 36 phone_re = re.compile(r'^[A-PR-Y0-9]{3}-[A-PR-Y0-9]{3}-[A-PR-Y0-9]{4}$', re.IGNORECASE) 37 slug_re = re.compile(r'^[-\w ]+$')37 slug_re = re.compile(r'^[-\w\.]+$') 38 38 url_re = re.compile(r'^https?://\S+$') 39 39 40 40 lazy_inter = lazy(lambda a,b: force_unicode(a) % b, unicode) -
docs/model-api.txt
401 401 ~~~~~~~~~~~~~ 402 402 403 403 "Slug" is a newspaper term. A slug is a short label for something, 404 containing only letters, numbers, underscores or hyphens. They're generally404 containing only letters, numbers, underscores, dots, or hyphens. They're generally 405 405 used in URLs. 406 406 407 407 Like a CharField, you can specify ``max_length``. If ``max_length`` is