only null string fields in sort
This commit is contained in:
parent
466031f839
commit
1c004ef207
1 changed files with 2 additions and 2 deletions
|
@ -776,10 +776,10 @@ class Item(models.Model):
|
|||
return sort_value
|
||||
|
||||
def set_value(s, name, value):
|
||||
if not value:
|
||||
value = None
|
||||
if isinstance(value, basestring):
|
||||
value = ox.decode_html(value.lower())
|
||||
if not value:
|
||||
value = None
|
||||
setattr(s, name, value)
|
||||
|
||||
base_keys = (
|
||||
|
|
Loading…
Reference in a new issue