From d0a54e563b31528567dfa214e04eab04df07c20e Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 11 Jul 2011 01:16:41 +0530 Subject: [PATCH] hide some things --- edgware/editor/views.py | 2 +- edgware/templates/editor.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/edgware/editor/views.py b/edgware/editor/views.py index 125ed74..89a2833 100644 --- a/edgware/editor/views.py +++ b/edgware/editor/views.py @@ -399,7 +399,7 @@ def category_json(request): if request.GET: catid = request.GET['id'] typ = request.GET.get('type', 'image') - resources = File.objects.filter(categories__id=catid, type=typ) + resources = File.objects.filter(categories__id=catid, type=typ).exclude(private=True) rList = [] for r in resources: # these should not be here diff --git a/edgware/templates/editor.html b/edgware/templates/editor.html index afdf624..252006d 100644 --- a/edgware/templates/editor.html +++ b/edgware/templates/editor.html @@ -247,8 +247,10 @@