Commit 39ecbdfc by benjaoming

Cleanup 'admin' slug error message

parent d9b2a5bc
...@@ -251,7 +251,7 @@ class CreateForm(forms.Form, SpamProtectionMixin): ...@@ -251,7 +251,7 @@ class CreateForm(forms.Form, SpamProtectionMixin):
if slug.startswith("_"): if slug.startswith("_"):
raise forms.ValidationError(_(u'A slug may not begin with an underscore.')) raise forms.ValidationError(_(u'A slug may not begin with an underscore.'))
if slug == 'admin': if slug == 'admin':
raise forms.ValidationError(_(u'Sorry, you cannot use admin as a slug !')) raise forms.ValidationError(_(u"'admin' is not a permitted slug name."))
if settings.URL_CASE_SENSITIVE: if settings.URL_CASE_SENSITIVE:
already_existing_slug = models.URLPath.objects.filter(slug=slug, parent=self.urlpath_parent) already_existing_slug = models.URLPath.objects.filter(slug=slug, parent=self.urlpath_parent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment