From 92a7d3c898a25355c6902fcab8f0da2a7b3b0cff Mon Sep 17 00:00:00 2001 From: derkaderka Date: Tue, 20 Dec 2011 13:31:19 +0100 Subject: [PATCH] Every model mixing Slugged in with a cyclical dependency fails with dumpdata in current Django (including a tree with a fix applied for Django ticket #14226). The natural key declared in Slugged is the culprit. --- mezzanine/core/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mezzanine/core/models.py b/mezzanine/core/models.py index 07b5109b56..0f706149d5 100644 --- a/mezzanine/core/models.py +++ b/mezzanine/core/models.py @@ -1,4 +1,3 @@ - from datetime import datetime from django.contrib.contenttypes.generic import GenericForeignKey @@ -67,9 +66,6 @@ def save(self, update_site=False, *args, **kwargs): self.site = Site.objects.get_current() super(Slugged, self).save(*args, **kwargs) - def natural_key(self): - return (self.slug,) - def get_slug(self): """ Allows subclasses to implement their own slug creation logic.