rename Item.itemId to Item.public_id
This commit is contained in:
parent
3ab0e4ba1e
commit
3232ce6989
44 changed files with 382 additions and 213 deletions
|
|
@ -85,7 +85,7 @@ class Program(models.Model):
|
|||
def json(self, user, current=False):
|
||||
item_json = self.item.get_json()
|
||||
r = {
|
||||
'item': self.item.itemId,
|
||||
'item': self.item.public_id,
|
||||
}
|
||||
for key in ('title', 'director', 'year', 'durations', 'parts', 'rightslevel'):
|
||||
r[key] = item_json.get(key, '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue