Skip to content
Snippets Groups Projects
Commit 2e097246 authored by Alice Heaton's avatar Alice Heaton :speech_balloon:
Browse files

Merge fix: re-introduce get_context_data on ViewItems

parent a598a48b
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,12 @@ class ViewItems(SingleTableView):
kwargs['categories'] = self.get_category_options()
return super(ViewItems, self).get_table(**kwargs)
def get_context_data(self, **kwargs):
context = super(ViewItems, self).get_context_data(**kwargs)
context['type_label'] = _('Questions')
context['upload_form'] = UploadForm(initial={'source': 'geopoll'})
return context
def get_deleted(params):
return [int(x) for x in params.getlist("delete", [])]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment