1class SignupForm(forms.Form):
2 first_name = forms.CharField(max_length=30, label='Voornaam')
3 last_name = forms.CharField(max_length=30, label='Achternaam')
4
5 def signup(self, request, user):
6 user.first_name = self.cleaned_data['first_name']
7 user.last_name = self.cleaned_data['last_name']
8 user.save()
9