return rightslevel

This commit is contained in:
j 2011-10-29 00:43:44 +02:00
parent 9b6b5e8176
commit 17badcd4e1

View file

@ -168,6 +168,8 @@ class Item(models.Model):
objects = managers.ItemManager() objects = managers.ItemManager()
def get(self, key, default=None): def get(self, key, default=None):
if key == 'rightslevel':
return self.level
if self.data and key in self.data: if self.data and key in self.data:
return self.data[key] return self.data[key]
if self.external_data and key in self.external_data: if self.external_data and key in self.external_data: