script archive basics

This commit is contained in:
Sanj 2011-10-24 03:03:12 +01:00
parent b946b3d941
commit d86dff8c7b
4 changed files with 26 additions and 13 deletions

View File

@ -47,6 +47,29 @@ class Script(ItfModel):
def __unicode__(self): def __unicode__(self):
return self.title return self.title
def list_dict(self):
return {
'id': self.id,
'title': self.title,
}
def info_dict(self):
return {
'title': self.title,
'synopsis': self.synopsis,
'no_characters': self.no_characters,
'no_of_women': self.no_of_women,
'production_notes': self.production_notes,
'language': self.language,
'approx_duration': self.approx_duration,
'is_partial': self.is_partial,
'author': self.author,
'contact': self.contact,
'script_file': self.script.url,
'license_adapt': self.license_adapt,
'license_perform': self.license_perform
}
''' '''
@classmethod @classmethod
def get_list(kls, data): def get_list(kls, data):

View File

@ -1,5 +0,0 @@
<div>Dummy text for licenses</div>
<div class="linksInnerOrange">
<a href="" class="orange">Download PDF</a>
<a href="" class="orange">Download PDF</a>
</div>

View File

@ -1,8 +0,0 @@
<div class="thumbsGallery">
<img src="" alt="" class="thumbsDetails">
<img src="" alt="" class="thumbsDetails">
<img src="" alt="" class="thumbsDetails">
</div>
<div class="orange">Dummy title</div>
<div>Dummy text</div>

View File

@ -0,0 +1,3 @@
<div class="orange">{{ title }}</div>
<span class="orange">Synopsis: </span> {{ synopsis }}