📜  django allauth 在 request.user 中获取额外数据 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:50.395000             🧑  作者: Mango

代码示例1
class SignupForm(forms.Form):
    first_name = forms.CharField(max_length=30, label='Voornaam')
    last_name = forms.CharField(max_length=30, label='Achternaam')

    def signup(self, request, user):
        user.first_name = self.cleaned_data['first_name']
        user.last_name = self.cleaned_data['last_name']
        user.save()