script add form, an experiment..
This commit is contained in:
parent
56f3b54f6a
commit
dc0dc09d83
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user