Browse files

add missing and object test case

  • Loading branch information...
1 parent 079b071 commit 9c2ff1348eb6f24af8244f69d546015bf68052d8 Val L33 committed May 30, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 README
@@ -1,7 +1,7 @@
-A custom Unified Slug app for Django, that guarantees uniqueness.
+A custom slug app for Django, that guarantees Double(u) for (Uniqueness & Unicode handling)
Most of the code is originally by snippet
Improved slightly to handle unique slugs and unicode chars and packaged by Val L33.
@@ -16,9 +16,7 @@ It handles unicode and it produces unique slugs.
Here what you need to do:
-1. Stick ``"uslug"`` in ``INSTALLED_APPS``, and then in your templates do::
-Then import it:: from uslug import uSlug
+1. Stick ``"uslug"`` in ``INSTALLED_APPS``, Then import it like: from uslug import uSlug
That's it.
@@ -53,6 +51,9 @@ Object Example
def save(self, *args, **kwargs):
self.slug = uSlug(, instance=self)
super(State, self).save(*args, **kwargs)
+ if you had two "names" as John & John, the slug for the first John would be "john" &
+ for the second John it would be "john-1"

0 comments on commit 9c2ff13

Please sign in to comment.