Add keyword arguments to RequestContext usage

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-27 01:25:48 -04:00
parent 74c97314d7
commit fba0c40bef
9 changed files with 28 additions and 18 deletions
@@ -64,9 +64,7 @@ class WorkflowListView(SingleObjectListView):
'hide_object': True,
'no_results_icon': icon_workflow_list,
'no_results_main_link': link_setup_workflow_create.resolve(
context=RequestContext(
self.request, {}
)
context=RequestContext(request=self.request)
),
'no_results_text': _(
'Create some workflows and associated them with a document '
@@ -137,7 +135,7 @@ class WorkflowStateListView(SingleObjectListView):
'hide_link': True,
'no_results_main_link': link_setup_workflow_state_create.resolve(
context=RequestContext(
self.request, {'object': self.get_workflow()}
request=self.request, dict_={'object': self.get_workflow()}
)
),
'no_results_text': _(