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']
|
fts_fields = ['title', 'synopsis', 'author']
|
||||||
fk_fields = ['license_adapt', 'license_perform']
|
fk_fields = ['license_adapt', 'license_perform']
|
||||||
|
|
||||||
|
add_form = 'ScriptForm'
|
||||||
|
|
||||||
#Meta
|
#Meta
|
||||||
added = models.DateTimeField(auto_now_add=True)
|
added = models.DateTimeField(auto_now_add=True)
|
||||||
modified = models.DateTimeField(auto_now=True)
|
modified = models.DateTimeField(auto_now=True)
|
||||||
|
@ -125,7 +127,8 @@ class License(ItfModel):
|
||||||
'short_description': self.short_description,
|
'short_description': self.short_description,
|
||||||
'readable_file': self.readable_file.url,
|
'readable_file': self.readable_file.url,
|
||||||
'legal_file': self.legal_file.url,
|
'legal_file': self.legal_file.url,
|
||||||
'typ': self.typ
|
'typ': self.typ,
|
||||||
|
'reviews': Review.objects.filter(script=self)
|
||||||
}
|
}
|
||||||
|
|
||||||
class Review(models.Model):
|
class Review(models.Model):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user