# allauth custom signup view "not working fields custom".

**URL:** <https://forum.djangoproject.com/t/allauth-custom-signup-view-not-working-fields-custom/33343>\
**Category:** Using Django\
**Created:** [July 27, 2024, 8:45pm UTC](https://forum.djangoproject.com/t/allauth-custom-signup-view-not-working-fields-custom/33343 "2024-07-27T20:45:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luigiamorfini1982](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/luigiamorfini1982/32/8836_2.png) [@luigiamorfini1982](https://forum.djangoproject.com/u/luigiamorfini1982)\
**Post date:** [July 27, 2024, 8:45pm UTC](https://forum.djangoproject.com/t/allauth-custom-signup-view-not-working-fields-custom/33343/1 "2024-07-27T20:45:45Z")

</div>

My code:

views.py

```auto
class mySignupView(SignupView):
    template_name = "accounts/signup.html"

```

forms.py

```auto
class MySignupForm(SignupForm):
    first_name = forms.CharField(label=_('First name'), widget=forms.TextInput())
    last_name = forms.CharField(label=_('Last name'), widget=forms.TextInput())
    date_of_birth = forms.DateField(label=_('Date of Birth'), widget=forms.SelectDateWidget(years=range(1908, this_year+1), empty_label=("Choose Year", "Choose Month", "Choose Day"), attrs=({'style': 'width: 33%; display: inline-block;', 'class': 'form-select'})))

    def save(self, request):
        user = super(MySignupForm, self).save(request)
        return user

    class Meta:
        model = User
        fields = ('username', 'email','first_name', 'last_name', 'gender', 'date_of_birth', 'marital_status', 'info', 'city', 'state', 'region', 'zip_code', 'street_address', 'phone') 

```

settings.py:

```auto

ACCOUNT_FORMS = {
                 'login': 'accounts.forms.LoginForm',
                 'signup': 'accounts.forms.MySignupForm',
                 'add_email': 'accounts.forms.AddEmailForm',
                 'change_password': 'accounts.forms.ChangePasswordForm',            
                 'set_password': 'accounts.forms.SetPasswordForm',
                 'reset_password': 'accounts.forms.ResetPasswordForm', 
                 'reset_password_from_key': 'accounts.forms.ResetPasswordKeyForm',
                }

```

 ![Schermata del 2024-07-27 22-43-29](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/0/5/05d819f1e7b748da7d0c4a9be25055e54c78f8a8.png)

Come posso fare che prenda anche i campi :

```auto
    class Meta:
        model = User
        fields = ('username', 'email','first_name', 'last_name', 'gender', 'date_of_birth', 'marital_status', 'info', 'city', 'state', 'region', 'zip_code', 'street_address', 'phone') 

```

Avete un’idea come fare?  
Grazie mille e scusate se parlo in italiano.

INFO: Translate “Italian to english”

Buona notte.
