refactor addList/editList

This commit is contained in:
j 2013-02-20 11:44:55 +00:00
commit ff0dcf5028
4 changed files with 95 additions and 115 deletions

View file

@ -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: