Browse Source

Make slug check case insensitive

David Cramer 12 years ago
parent
commit
a0550bb014
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/models.py

+ 1 - 1
src/sentry/models.py

@@ -60,7 +60,7 @@ def slugify_instance(inst, label, **kwargs):
     manager = type(inst).objects
     inst.slug = base_slug
     n = 0
-    while manager.filter(slug=inst.slug, **kwargs).exists():
+    while manager.filter(slug__iexact=inst.slug, **kwargs).exists():
         n += 1
         inst.slug = base_slug + '-' + str(n)