more defaults
This commit is contained in:
parent
c99bec21a8
commit
02f787d062
1 changed files with 2 additions and 0 deletions
|
@ -578,6 +578,8 @@ class Item(models.Model):
|
|||
s.cuts = len(self.data.get('cuts', []))
|
||||
if s.duration:
|
||||
s.cutsperminute = s.cuts / (s.duration/60)
|
||||
else:
|
||||
s.cutsperminute = 0
|
||||
for key in ('title', 'language', 'country') + self.person_keys:
|
||||
setattr(s, '%s_desc'%key, getattr(s, key))
|
||||
if not getattr(s, key):
|
||||
|
|
Loading…
Reference in a new issue