reverse season ordering in client
This commit is contained in:
@ -24,8 +24,8 @@ def catalogedit(request, id=0):
|
|||||||
seasons = Season.objects.order_by('ordering')
|
seasons = Season.objects.order_by('ordering')
|
||||||
context = {
|
context = {
|
||||||
'catalogID': id,
|
'catalogID': id,
|
||||||
'seasons': [s.serialize() for s in seasons],
|
|
||||||
'regions': [r.serialize() for r in regions if r.visible],
|
'regions': [r.serialize() for r in regions if r.visible],
|
||||||
|
'seasons': [s.serialize() for s in seasons][::-1], # reversed
|
||||||
}
|
}
|
||||||
return render(request, 'catalogedit/catalogedit.html', context)
|
return render(request, 'catalogedit/catalogedit.html', context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user