dont try to escpe numbers

This commit is contained in:
j 2014-10-17 17:04:47 +02:00
parent 9b6b9fa3a4
commit 91897832be

View file

@ -277,6 +277,8 @@ class Item(models.Model):
i = ox.escape_html(i) i = ox.escape_html(i)
return i return i
self.data[key] = [cleanup(i) for i in data[key]] 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: else:
self.data[key] = ox.escape_html(data[key]) self.data[key] = ox.escape_html(data[key])
p = self.save() p = self.save()