From 17badcd4e12339f7f99f25f6d716e035f7ae636f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 29 Oct 2011 00:43:44 +0200 Subject: [PATCH] return rightslevel --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index ec54b5f4..c145aa8c 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -168,6 +168,8 @@ class Item(models.Model): objects = managers.ItemManager() def get(self, key, default=None): + if key == 'rightslevel': + return self.level if self.data and key in self.data: return self.data[key] if self.external_data and key in self.external_data: