case insensitive sort value

This commit is contained in:
j 2012-02-14 11:15:32 +05:30
parent ac5c2ab9c8
commit efaf356f15

View file

@ -1346,7 +1346,7 @@ class Facet(models.Model):
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
if not self.sortvalue: if not self.sortvalue:
self.sortvalue = utils.sort_string(self.value) self.sortvalue = utils.sort_string(self.value).lower()
super(Facet, self).save(*args, **kwargs) super(Facet, self).save(*args, **kwargs)
class Description(models.Model): class Description(models.Model):