Add comment
authorMagnus Hagander <magnus@hagander.net>
Sun, 18 Aug 2013 16:17:22 +0000 (18:17 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sun, 18 Aug 2013 16:17:22 +0000 (18:17 +0200)
pgcommitfest/commitfest/views.py

index 15c342b4d281389721950b37a84f7a9c29b24af9..82ff8f167c3f4af3f893fde1381cc77f2e4c76f0 100644 (file)
@@ -63,6 +63,8 @@ def commitfest(request, cfid):
                'is_open':'commitfest_patchoncommitfest.status IN (%s)' % ','.join([str(x) for x in PatchOnCommitFest.OPEN_STATUSES]),
        }).order_by('-is_open', 'topic__topic', 'created')
 
+       # Generates a fairly expensive query, which we shouldn't do unless
+       # the user is logged in. XXX: Figure out how to avoid doing that..
        form = CommitFestFilterForm(cf, request.GET)
 
        return render_to_response('commitfest.html', {