Ticket #12972: flatpages_admin.diff

File flatpages_admin.diff, 809 bytes (added by Jared Forsyth, 14 years ago)

patch

  • admin.py

     
    55
    66
    77class FlatpageForm(forms.ModelForm):
    8     url = forms.RegexField(label=_("URL"), max_length=100, regex=r'^[-\w/]+$',
     8    url = forms.RegexField(label=_("URL"), max_length=100, regex=r'^/[-\w/]+/$',
    99        help_text = _("Example: '/about/contact/'. Make sure to have leading"
    1010                      " and trailing slashes."),
    1111        error_message = _("This value must contain only letters, numbers,"
    12                           " underscores, dashes or slashes."))
     12                          " underscores, dashes or slashes, and must begin"
     13                          " and end with a slash."))
    1314
    1415    class Meta:
    1516        model = FlatPage
Back to Top