From 1113462edcf69b81e93a9545198c1091e3bf6703 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 27 Mar 2010 16:58:02 -0500 Subject: Simplify code now that pkgbase is always defined This allows some of our queries to get a lot simpler as well as removing the pkgbase_safe property added earlier. Signed-off-by: Dan McGee --- devel/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devel') diff --git a/devel/views.py b/devel/views.py index 045e60f7..c202c735 100644 --- a/devel/views.py +++ b/devel/views.py @@ -23,7 +23,7 @@ def index(request): '''the Developer dashboard''' inner_q = PackageRelation.objects.filter(user=request.user).values('pkgbase') packages = Package.objects.select_related('arch', 'repo').filter(needupdate=True) - packages = packages.filter(Q(pkgname__in=inner_q) | Q(pkgbase__in=inner_q)) + packages = packages.filter(pkgbase__in=inner_q) page_dict = { 'todos': Todolist.objects.incomplete(), -- cgit v1.2.3-54-g00ecf