Browse Source

Slugify strings correctly

Ralfp 12 years ago
parent
commit
8f4916aabc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      misago/utils/strings.py

+ 2 - 2
misago/utils/strings.py

@@ -1,4 +1,4 @@
-from django.template.defaultfilters import slugify
+from django.template.defaultfilters import slugify as django_slugify
 from django.utils import crypto
 from django.utils import crypto
 try:
 try:
     from unidecode import unidecode
     from unidecode import unidecode
@@ -9,7 +9,7 @@ except ImportError:
 def slugify(string):
 def slugify(string):
     if use_unidecode:
     if use_unidecode:
         string = unidecode(string)
         string = unidecode(string)
-    return django.template.defaultfilters.slugify(string)
+    return django_slugify(string)
 
 
 
 
 def random_string(length):
 def random_string(length):