/ID/frameposterX.jpg should be /ID/posterframeX.jpg, fixes #663

This commit is contained in:
j 2012-06-11 10:30:29 +02:00
parent ef3c63badc
commit c7ad68cab9
2 changed files with 2 additions and 2 deletions

View file

@ -451,7 +451,7 @@ class Item(models.Model):
'index': p,
'position': f['position'],
'selected': p == pos,
'url': '/%s/frameposter%d.jpg' %(self.itemId, p),
'url': '/%s/posterframe%d.jpg' %(self.itemId, p),
'height': f['height'],
'width': f['width']
})

View file

@ -29,10 +29,10 @@ urlpatterns = patterns("item.views",
(r'^(?P<id>[A-Z0-9].*)/icon(?P<size>\d*)\.jpg$', 'icon'),
#poster
(r'^(?P<id>[A-Z0-9].*)/posterframe(?P<position>\d+).jpg$', 'poster_frame'),
(r'^(?P<id>[A-Z0-9].*)/poster(?P<size>\d+)\.jpg$', 'poster'),
(r'^(?P<id>[A-Z0-9].*)/siteposter(?P<size>\d*)\.jpg$', 'siteposter'),
(r'^(?P<id>[A-Z0-9].*)/poster\.jpg$', 'siteposter'),
(r'^(?P<id>[A-Z0-9].*)/frameposter(?P<position>\d+).jpg$', 'poster_frame'),
(r'^random$', 'random_annotation'),
)