forked from 0x2620/pandora
dont try to escpe numbers
This commit is contained in:
parent
9b6b9fa3a4
commit
91897832be
1 changed files with 2 additions and 0 deletions
|
@ -277,6 +277,8 @@ class Item(models.Model):
|
|||
i = ox.escape_html(i)
|
||||
return i
|
||||
self.data[key] = [cleanup(i) for i in data[key]]
|
||||
elif isinstance(data[key], int) or isinstance(data[key], float):
|
||||
self.data[key] = data[key]
|
||||
else:
|
||||
self.data[key] = ox.escape_html(data[key])
|
||||
p = self.save()
|
||||
|
|
Loading…
Reference in a new issue