From b9c96f2a5e2d0c5596ee0a70ac135a52f5ae6ee4 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 20 Oct 2011 22:13:47 +0200 Subject: [PATCH] add title --- pandora/item/models.py | 2 +- static/js/pandora/ui/item.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 812b79a5..a3541322 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -387,7 +387,7 @@ class Item(models.Model): layers = {} for l in Layer.objects.all(): ll = layers.setdefault(l.name, []) - qs = Annotation.objects.filter(layer=l, item=self).select_related() + qs = Annotation.objects.filter(layer=l, item=self) if l.name == 'subtitles': qs = qs.exclude(value='') if l.private: diff --git a/static/js/pandora/ui/item.js b/static/js/pandora/ui/item.js index a5ed11fe..90303237 100644 --- a/static/js/pandora/ui/item.js +++ b/static/js/pandora/ui/item.js @@ -7,7 +7,7 @@ pandora.ui.item = function() { pandora.api.get({ id: pandora.user.ui.item, keys: ['video', 'timeline'].indexOf(pandora.user.ui.itemView)>-1 ? - ['rendered', 'cuts', 'videoRatio', 'duration', 'layers', 'parts', 'size'] : [] + [ 'cuts', 'duration', 'layers', 'parts', 'rendered', 'size', 'title', 'videoRatio'] : [] }, pandora.user.level == 'admin' && pandora.user.ui.itemView == 'info' ? 0 : -1, function(result) { if (result.status.code == 200) {