forked from 0x2620/pandora
make sure sortvalue is lowercase, fixes #2667
This commit is contained in:
parent
685353a6f0
commit
f680d8613e
1 changed files with 1 additions and 0 deletions
|
@ -1734,6 +1734,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).lower()[:900]
|
self.sortvalue = utils.sort_string(self.value).lower()[:900]
|
||||||
|
self.sotvalue = self.sortvalue.lower()
|
||||||
super(Facet, self).save(*args, **kwargs)
|
super(Facet, self).save(*args, **kwargs)
|
||||||
|
|
||||||
class Description(models.Model):
|
class Description(models.Model):
|
||||||
|
|
Loading…
Reference in a new issue