Ticket #12972: flatpages_admin.diff
File flatpages_admin.diff, 809 bytes (added by , 15 years ago) |
---|
-
admin.py
5 5 6 6 7 7 class 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/]+/$', 9 9 help_text = _("Example: '/about/contact/'. Make sure to have leading" 10 10 " and trailing slashes."), 11 11 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.")) 13 14 14 15 class Meta: 15 16 model = FlatPage