remove the kwargs from the form

This commit is contained in:
Andreas Zweili 2020-02-29 15:18:58 +01:00
parent d4b48728c2
commit 039fe5f54c
1 changed files with 1 additions and 2 deletions

View File

@ -90,10 +90,9 @@ class ComputerCreateFromCustomerView(LoginRequiredMixin, CreateView):
def get_form_kwargs(self):
"""
Pass the URL variables and the request user to the form.
Pass the request user to the form.
"""
kwargs = super(ComputerCreateFromCustomerView, self).get_form_kwargs()
kwargs.update(self.kwargs)
kwargs.update({'user': self.request.user})
return kwargs