add rightsLevel to json

This commit is contained in:
j 2011-10-22 14:51:56 +02:00
parent eaaf76e149
commit bc58e659a3

View file

@ -403,7 +403,8 @@ class Item(models.Model):
def get_json(self, keys=None): def get_json(self, keys=None):
i = { i = {
'id': self.itemId, 'id': self.itemId,
'rendered': self.rendered 'rendered': self.rendered,
'rightsLevel': self.level
} }
i.update(self.external_data) i.update(self.external_data)
i.update(self.data) i.update(self.data)