From 05b1a79a5acc546fa6d1ba3dd94ed350598c4ed2 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Thu, 7 Nov 2019 14:32:31 -0800 Subject: [PATCH] only send visible regions to the client --- catalogedit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogedit/views.py b/catalogedit/views.py index 546b84f..726285c 100644 --- a/catalogedit/views.py +++ b/catalogedit/views.py @@ -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)