From ec5a15aaaf8cd75104f126bb44eceabe047f72a4 Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 21 Feb 2013 12:50:27 +0100 Subject: [PATCH] filter draft seminars for auditors --- teleforma/context_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/context_processors.py b/teleforma/context_processors.py index 96998b2c..b0c91fcc 100644 --- a/teleforma/context_processors.py +++ b/teleforma/context_processors.py @@ -101,7 +101,7 @@ def all_seminars(request, progress_order=False, date_order=False): elif auditor and not (user.is_staff or user.is_superuser): auditor = user.auditor.get() - seminars = auditor.seminars.all() + seminars = auditor.seminars.filter(status=2) elif user.is_staff or user.is_superuser: seminars = Seminar.objects.all() -- 2.39.5