manualy set json/modified, gets out of sync otherwise

This commit is contained in:
j 2012-09-27 06:32:35 +02:00
parent a0e14d299b
commit b097dc2862

View file

@ -363,6 +363,7 @@ class Item(models.Model):
self.poster_frame = self.sort.duration/2 self.poster_frame = self.sort.duration/2
update_poster = True update_poster = True
self.json = self.get_json() self.json = self.get_json()
self.json['modified'] = datetime.now()
super(Item, self).save(*args, **kwargs) super(Item, self).save(*args, **kwargs)
self.update_find() self.update_find()
self.update_sort() self.update_sort()