Permalink
Browse files

filter for non-exec offices

  • Loading branch information...
1 parent e538ed3 commit 4f539b2b902265e36245ef158fc7717a77190e81 @leibovic committed Nov 6, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 website/views.py
View
@@ -164,6 +164,7 @@ def sistersonly_elections_loi(request):
else:
form = CandidateForm()
+ form.fields['office'].queryset = Office.objects.filter(is_exec=settings.EXEC_ELECTION)
form.fields['sisters'].queryset = Sister.objects.exclude(status=1).order_by('user__last_name')
context['form'] = form
return render_to_response('sistersonly/elections_loi.html', RequestContext(request, context))

0 comments on commit 4f539b2

Please sign in to comment.