~netlandish/django-wiki

80c711d242f0e5aaac86ec4197b97c5073a91a78 — Benjamin Bach 6 years ago 8798972 + c002a2c
Merge pull request #775 from atombrella/correct_super

Corrected the super().__init__ call in WikiSlugField.
1 files changed, 2 insertions(+), 2 deletions(-)

M src/wiki/forms.py
M src/wiki/forms.py => src/wiki/forms.py +2 -2
@@ 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):