From 3fd05ca49e589097ae9392a7f919f8a77f248b01 Mon Sep 17 00:00:00 2001 From: Josh Williams Date: Tue, 15 Oct 2013 15:02:55 -0400 Subject: [PATCH] Test-Remove slug duplicate look-up for the moment --- karmaworld/apps/notes/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/karmaworld/apps/notes/models.py b/karmaworld/apps/notes/models.py index cc7a262..f8a0059 100644 --- a/karmaworld/apps/notes/models.py +++ b/karmaworld/apps/notes/models.py @@ -76,7 +76,8 @@ class Document(models.Model): """ generate a unique slug based on name and uploaded_at """ _slug = defaultfilters.slugify(self.name) klass = self.__class__ - collision = klass.objects.filter(slug=_slug) + #collision = klass.objects.filter(slug=_slug) + collision = True if collision: _slug = u"{0}-{1}-{2}-{3}".format( _slug, self.uploaded_at.month, -- 2.25.1