refactor addList/editList
This commit is contained in:
parent
9377f772e4
commit
ff0dcf5028
4 changed files with 95 additions and 115 deletions
|
|
@ -138,8 +138,9 @@ class Text(models.Model):
|
|||
self.type = data['type'] == 'pdf' and 'pdf' or 'html'
|
||||
if 'posterFrames' in data:
|
||||
self.poster_frames = tuple(data['posterFrames'])
|
||||
self.update_icon()
|
||||
self.save()
|
||||
if 'posterFrames' in data:
|
||||
self.update_icon()
|
||||
|
||||
def json(self, keys=None, user=None):
|
||||
if not keys:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue