From c002a2c19ff4ac3bffd8e71b6ed14b1abd25db63 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Tue, 20 Feb 2018 18:26:19 +0100 Subject: [PATCH] Changed parent of WikiSlugField to CharField. --- src/wiki/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wiki/forms.py b/src/wiki/forms.py index 987c22fb..a2621267 100644 --- a/src/wiki/forms.py +++ b/src/wiki/forms.py @@ -37,7 +37,7 @@ validate_slug_numbers = RegexValidator( ) -class WikiSlugField(forms.SlugField): +class WikiSlugField(forms.CharField): """ In future versions of Django, we might be able to define this field as the default field directly on the model. For now, it's used in CreateForm. @@ -52,7 +52,7 @@ class WikiSlugField(forms.SlugField): validators.validate_unicode_slug, validate_slug_numbers ] - super(forms.SlugField, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) def _clean_slug(slug, urlpath): -- 2.45.2