api_api/update poster width/height

This commit is contained in:
j 2010-09-06 22:31:12 +02:00
commit 32375a9ff9
2 changed files with 15 additions and 0 deletions

View file

@ -161,6 +161,10 @@ class Movie(models.Model):
if not self.oxdbId:
self.oxdbId = self.oxid()
if self.poster:
self.poster_height = self.poster.height
self.poster_width = self.poster.width
super(Movie, self).save(*args, **kwargs)
self.updateFind()
self.updateSort()