From b065291879485f9afae2f73c09d4e3f109f3abf1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 20 Jun 2012 22:39:59 +0530 Subject: [PATCH] padma videos list --- itf/padmavideos/models.py | 16 ++++++++++------ .../modules/padmavideos/padmavideo.html | 11 +++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 itf/templates/modules/padmavideos/padmavideo.html diff --git a/itf/padmavideos/models.py b/itf/padmavideos/models.py index 23f723d..8829ce3 100644 --- a/itf/padmavideos/models.py +++ b/itf/padmavideos/models.py @@ -25,19 +25,23 @@ class PadmaVideo(ItfModel): data = DictField(default={}, editable=False) layers = DictField(default={}, editable=False) + fts = ['title'] + def __unicode__(self): return self.padma_id def get_dict(self): return { - 'embed_code': self.embed_code, - 'url': self.url, + #'embed_code': self.embed_code, + #'url': self.url, + 'padma_id': self.padma_id, + 'duration': self.duration, 'title': self.title, 'data': self.data, - 'time_in': self.time_in, - 'time_out': self.time_out, - 'layers':self.layers - + #'time_in': self.time_in, + #'time_out': self.time_out, + 'layers':self.layers, + 'clips': self.padmaclip_set.all() } @property diff --git a/itf/templates/modules/padmavideos/padmavideo.html b/itf/templates/modules/padmavideos/padmavideo.html new file mode 100644 index 0000000..a8dc40c --- /dev/null +++ b/itf/templates/modules/padmavideos/padmavideo.html @@ -0,0 +1,11 @@ +
{{ title }}
+
+ + + +