from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm

from .models import UsuariosUser


class UsuariosUserCreationForm(UserCreationForm):

    class Meta:
        model = UsuariosUser
        fields = ("email", "nombre", "foto", "tipo")
        labels = {'email': 'Dirección de correo'}


class UsuariosUserChangeForm(UserChangeForm):

    class Meta:
        model = UsuariosUser
        fields = ("email", "foto")
