return rightslevel
This commit is contained in:
parent
9b6b5e8176
commit
17badcd4e1
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue