use south, add poster width/height

This commit is contained in:
j 2010-07-05 10:30:17 +02:00
commit c150e7f8a8
4 changed files with 1238 additions and 4 deletions

View file

@ -300,9 +300,9 @@ class Movie(models.Model):
poster = models.TextField(blank=True)
posters_disabled = models.TextField(blank=True)
posters_available = models.TextField(blank=True)
poster_height = models.IntegerField(null=True, blank=True)
poster_width = models.IntegerField(null=True, blank=True)
'''
poster_height = models.IntegerField(default=0)
poster_width = models.IntegerField(default=0)
#stream related fields
'''
@ -374,7 +374,9 @@ class Movie(models.Model):
'rating': 'rating',
'votes': 'votes',
'alternative_titles': 'alternative_titles',
'connections_json': 'connections'
'connections_json': 'connections',
'posterWidth': 'poster_width',
'posterHeight': 'poster_height'
}
def get_json(self, fields=None):
movie = {}