From 91897832be7617074cb0871988ef85f6b375f736 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 17 Oct 2014 17:04:47 +0200 Subject: [PATCH] dont try to escpe numbers --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index d3a06c9c1..80a779f5a 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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()