From 61ca7fabc10adff0afa3ff611c37f181f59edd50 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 12 Feb 2013 19:52:07 +0530 Subject: [PATCH] use AZ urls --- item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/item/models.py b/item/models.py index fdc6ba8..6858b9c 100644 --- a/item/models.py +++ b/item/models.py @@ -17,7 +17,7 @@ from ox.django import fields def new_slug(): current_max = Item.objects.all().count() * 2 - slug = ox.to32(random.randint(0, max(10, current_max))).capitalize() + slug = ox.toAZ(random.randint(0, max(10, current_max))).capitalize() if Item.objects.all().filter(slug=slug).count() > 0: return new_slug() return slug