From: Josh Williams Date: Tue, 15 Oct 2013 19:02:55 +0000 (-0400) Subject: Test-Remove slug duplicate look-up for the moment X-Git-Tag: release-20150131~386^2~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3fd05ca49e589097ae9392a7f919f8a77f248b01;p=oweals%2Fkarmaworld.git Test-Remove slug duplicate look-up for the moment --- 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,