projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f1dc04
)
Test-Remove slug duplicate look-up for the moment
author
Josh Williams
<jwilliams@endpoint.com>
Tue, 15 Oct 2013 19:02:55 +0000
(15:02 -0400)
committer
Josh Williams
<jwilliams@endpoint.com>
Tue, 15 Oct 2013 19:02:55 +0000
(15:02 -0400)
karmaworld/apps/notes/models.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/models.py
b/karmaworld/apps/notes/models.py
index cc7a262991ca8e20089dcd55de85e3d3611760a1..f8a0059dd8985eb25f3c7bbf773d628374d56394 100644
(file)
--- 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,