diff --git a/pandora/item/models.py b/pandora/item/models.py index 5bc60557..0a1a22a4 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -226,7 +226,11 @@ class Item(models.Model): d.description = data.pop(key) d.save() for key in data: - self.data[key] = data[key] + if data[key] == None: + if key in self.data: + del self.data[key] + else: + self.data[key] = data[key] return self.save() def log(self):