From ae6afd4ac3ac605925ec5df10e1bf4e04e9a2e93 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Wed, 28 Feb 2018 21:18:27 +0100 Subject: [PATCH] Removed an unneeded super().clean in URLPath. --- src/wiki/models/urlpath.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wiki/models/urlpath.py b/src/wiki/models/urlpath.py index 7104eaa5..235af755 100644 --- a/src/wiki/models/urlpath.py +++ b/src/wiki/models/urlpath.py @@ -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: -- 2.45.2