forked from 0x2620/pandora
json caches sort values, make sure they are up to date before updating json
This commit is contained in:
parent
7e0f7cf5fb
commit
c3b4a622ad
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue