script add form, an experiment..

This commit is contained in:
Sanj 2011-10-24 03:20:12 +01:00
parent 56f3b54f6a
commit dc0dc09d83

View File

@ -40,6 +40,8 @@ class Script(ItfModel):
fts_fields = ['title', 'synopsis', 'author']
fk_fields = ['license_adapt', 'license_perform']
add_form = 'ScriptForm'
#Meta
added = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
@ -125,7 +127,8 @@ class License(ItfModel):
'short_description': self.short_description,
'readable_file': self.readable_file.url,
'legal_file': self.legal_file.url,
'typ': self.typ
'typ': self.typ,
'reviews': Review.objects.filter(script=self)
}
class Review(models.Model):