We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77db2d8 commit 60581fcCopy full SHA for 60581fc
rest_auth/registration/views.py
@@ -49,9 +49,13 @@ def form_valid(self, form):
49
app_settings.EMAIL_VERIFICATION,
50
self.get_success_url())
51
52
+ def get_form_kwargs(self, *args, **kwargs):
53
+ kwargs = super(RegisterView, self).get_form_kwargs(*args, **kwargs)
54
+ kwargs['data'] = self.request.data
55
+ return kwargs
56
+
57
def post(self, request, *args, **kwargs):
58
self.initial = {}
- self.request.POST = self.request.data.copy()
59
form_class = self.get_form_class()
60
self.form = self.get_form(form_class)
61
if self.form.is_valid():
0 commit comments