Skip to content

Instantly share code, notes, and snippets.

@dima-kov
Created July 27, 2017 16:33
Embed
What would you like to do?
Return view from another one and change method
def form_invalid(self, form):
print(form.errors)
print(self.request)
# print(help(self.request))
request = self.request
request.method = 'GET'
return BookView.as_view(booking_form=form)(request=request, pk=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment