Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Every model mixing Slugged in with a cyclical dependency fails with d…

…umpdata in current Django (including a tree with a fix applied for Django ticket #14226). The natural key declared in Slugged is the culprit.
  • Loading branch information...
commit 92a7d3c898a25355c6902fcab8f0da2a7b3b0cff 1 parent 1e18f25
@derkaderka derkaderka authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 mezzanine/core/models.py
View
4 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.
Please sign in to comment.
Something went wrong with that request. Please try again.