From dc0dc09d837da17559c961ab5a395ebd3d63ac84 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 03:20:12 +0100 Subject: [PATCH] script add form, an experiment.. --- itf/scriptbank/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/itf/scriptbank/models.py b/itf/scriptbank/models.py index c4e7cf7..13a7c6f 100755 --- a/itf/scriptbank/models.py +++ b/itf/scriptbank/models.py @@ -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):