Changeset 5f82b6c for remit/vouchers/views.py
- Timestamp:
- Jul 6, 2014, 4:38:22 AM (11 years ago)
- Branches:
- master
- Children:
- 7a292ed
- Parents:
- bc1da44
- git-author:
- Alex Dehnert <adehnert@…> (07/06/14 04:38:22)
- git-committer:
- Alex Dehnert <adehnert@…> (07/06/14 04:38:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
remit/vouchers/views.py
r21360c8 r5f82b6c 2 2 from vouchers.models import ReimbursementRequest, Documentation 3 3 from finance_core.models import BudgetTerm, BudgetArea 4 from util.shortcuts import get_403_response , ListViewWithContext4 from util.shortcuts import get_403_response 5 5 6 6 from django.contrib.auth.decorators import user_passes_test, login_required … … 427 427 428 428 # GENERATE THE REQUEST 429 callable = ListViewWithContext.as_view( 430 queryset=qs, 431 extra_context={ 432 'actions' : actions, 433 'selected_ids' : list_to_keys(selected_rr_ids), 434 'action_message': apply_action_message, 435 'action_errors' : apply_action_errors, 436 'useronly': useronly, 437 'order' : order, 438 'orders' : request_list_orders, 439 'approval_status' : approval_status, 440 'approval_states': vouchers.models.APPROVAL_STATES, 441 'pagename': 'list_requests', 442 }, 443 ) 444 return callable(http_request) 429 430 context = { 431 'object_list' : qs, 432 'actions' : actions, 433 'selected_ids' : list_to_keys(selected_rr_ids), 434 'action_message': apply_action_message, 435 'action_errors' : apply_action_errors, 436 'useronly': useronly, 437 'order' : order, 438 'orders' : request_list_orders, 439 'approval_status' : approval_status, 440 'approval_states': vouchers.models.APPROVAL_STATES, 441 'pagename': 'list_requests', 442 } 443 return render_to_response('vouchers/reimbursementrequest_list.html', context, context_instance=RequestContext(http_request), )
Note: See TracChangeset
for help on using the changeset viewer.