only send visible regions to the client

This commit is contained in:
2019-11-07 14:32:31 -08:00
parent 7d5f258dfc
commit 05b1a79a5a

View File

@ -24,8 +24,8 @@ def catalogedit(request, id=0):
seasons = Season.objects.order_by('ordering')
context = {
'catalogID': id,
'regions': [r.serialize() for r in regions],
'seasons': [s.serialize() for s in seasons],
'regions': [r.serialize() for r in regions if r.visible],
}
return render(request, 'catalogedit/catalogedit.html', context)