Skip to content

Commit

Permalink
- Refer to the argument form as 'argument_form' in view classes / att…
Browse files Browse the repository at this point in the history
…ribute names

- Use ImproperlyConfigured errors instead of NotImplementedError in views
  • Loading branch information
ababic committed Jul 30, 2019
1 parent c72a376 commit 1eeb2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtailmenus/api/v1/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_context(self, data, accepted_media_type, renderer_context):
return context

def get_argument_form(self, data, view, request):
form = view.get_form()
form = view.get_argument_form()
template = loader.get_template(self.argument_form_template)
context = {'elements': [form.to_html(request)]}
return template.render(context)

0 comments on commit 1eeb2b6

Please sign in to comment.