Ticket #5192: 5192b.diff
File 5192b.diff, 653 bytes (added by , 17 years ago) |
---|
-
django/contrib/flatpages/models.py
3 3 from django.contrib.sites.models import Site 4 4 from django.utils.translation import ugettext_lazy as _ 5 5 6 import re 7 validators.alnumurl_re = re.compile(r'^[-\w/~]+$') 8 6 9 class FlatPage(models.Model): 7 10 url = models.CharField(_('URL'), max_length=100, validator_list=[validators.isAlphaNumericURL], db_index=True, 8 11 help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes."))