Test-Remove slug duplicate look-up for the moment
authorJosh Williams <jwilliams@endpoint.com>
Tue, 15 Oct 2013 19:02:55 +0000 (15:02 -0400)
committerJosh Williams <jwilliams@endpoint.com>
Tue, 15 Oct 2013 19:02:55 +0000 (15:02 -0400)
karmaworld/apps/notes/models.py

index cc7a262991ca8e20089dcd55de85e3d3611760a1..f8a0059dd8985eb25f3c7bbf773d628374d56394 100644 (file)
@@ -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,