~netlandish/django-wiki

ae6afd4ac3ac605925ec5df10e1bf4e04e9a2e93 — Mads Jensen 6 years ago be65c45
Removed an unneeded super().clean in URLPath.
1 files changed, 0 insertions(+), 2 deletions(-)

M src/wiki/models/urlpath.py
M src/wiki/models/urlpath.py => src/wiki/models/urlpath.py +0 -2
@@ 204,7 204,6 @@ class URLPath(MPTTModel):
                raise ValidationError(
                    _('There is already a root node on %s') %
                    self.site)
        super().clean(*args, **kwargs)

    @classmethod
    def get_by_path(cls, path, select_related=False):


@@ 251,7 250,6 @@ class URLPath(MPTTModel):
            site = Site.objects.get_current()
        root_nodes = cls.objects.root_nodes().filter(site=site)
        if not root_nodes:
            # (get_or_create does not work for MPTT models??)
            article = Article()
            revision = ArticleRevision(title=title, **kwargs)
            if request: