from django import forms

from django.contrib.auth.forms import UserCreationForm

from django.contrib.auth import get_user_model

User = get_user_model()

class RegistroFormulario(UserCreationForm):
    localidad = forms.CharField(required=True)

    class Meta:
        model = User
        fields = [

            'first_name',
            'localidad',
            'username',
            'email',
            'password1',
            'password2',

        ]
5c75a5554bc95f412bcf2dc6fdd6ba10adf69933
<mask token>


class RegistroFormulario(UserCreationForm):
    <mask token>


    class Meta:
        model = User
        fields = ['first_name', 'localidad', 'username', 'email',
            'password1', 'password2']

<mask token>


class RegistroFormulario(UserCreationForm):
    localidad = forms.CharField(required=True)


    class Meta:
        model = User
        fields = ['first_name', 'localidad', 'username', 'email',
            'password1', 'password2']

<mask token>
User = get_user_model()


class RegistroFormulario(UserCreationForm):
    localidad = forms.CharField(required=True)


    class Meta:
        model = User
        fields = ['first_name', 'localidad', 'username', 'email',
            'password1', 'password2']

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import get_user_model
User = get_user_model()


class RegistroFormulario(UserCreationForm):
    localidad = forms.CharField(required=True)


    class Meta:
        model = User
        fields = ['first_name', 'localidad', 'username', 'email',
            'password1', 'password2']

from django import forms

from django.contrib.auth.forms import UserCreationForm

from django.contrib.auth import get_user_model

User = get_user_model()

class RegistroFormulario(UserCreationForm):
    localidad = forms.CharField(required=True)

    class Meta:
        model = User
        fields = [

            'first_name',
            'localidad',
            'username',
            'email',
            'password1',
            'password2',

        ]