~netlandish/django-wiki

8002ac2a9687d1d87dfc1b586689265cf5f6fa12 — Benjamin Bach 6 years ago 9e1295a + ae6afd4
Merge pull request #843 from atombrella/mptt_comment

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: