I customized the user profile like suggested in this question: How to customize user profile when using django-allauth
So basically my code looks like this:
In forms.py:
class SignupForm(forms.Form): first_name = forms.CharField(max_length=30, label=_("First Name")) last_name = forms.CharField(max_length=30, label=_("Last Name")) def save(self, user): user.first_name = self.cleaned_data['first_name'] user.last_name = self.cleaned_data['last_name'] user.save()
In settings.py:
ACCOUNT_SIGNUP_FORM_CLASS = 'core.forms.SignupForm'
The code works fine and I get the complete form with First Name and Last Name in the sign up form, but I get the following warning:
DeprecationWarning: The custom signup form must offer a def signup(self, request, user) method DeprecationWarning)
Question: What do I have to do with def signup(self, request, user) method
in order to solve this warning?
Thank you!