json caches sort values, make sure they are up to date before updating json

This commit is contained in:
j 2014-03-16 19:36:29 +00:00
parent 7e0f7cf5fb
commit c3b4a622ad

View file

@ -401,6 +401,7 @@ class Item(models.Model):
else: else:
self.poster_height = 128 self.poster_height = 128
self.poster_width = 80 self.poster_width = 80
self.update_sort()
self.json = self.get_json() self.json = self.get_json()
self.json['modified'] = datetime.now() self.json['modified'] = datetime.now()
super(Item, self).save(*args, **kwargs) super(Item, self).save(*args, **kwargs)