diff --git a/Libros/biblioteca/gestion/forms.py b/Libros/biblioteca/gestion/forms.py index d9a01cb..9092ba2 100644 --- a/Libros/biblioteca/gestion/forms.py +++ b/Libros/biblioteca/gestion/forms.py @@ -31,8 +31,7 @@ class ReyMotaUserCreationForm(UserCreationForm): class Meta: model = ReyMotaUser - fields = ("email", "foto") - + fields = ("email", "nombre", "foto") class ReyMotaUserChangeForm(UserChangeForm): diff --git a/Libros/biblioteca/gestion/templates/registration/signup.html b/Libros/biblioteca/gestion/templates/registration/signup.html index 2267470..17a1873 100644 --- a/Libros/biblioteca/gestion/templates/registration/signup.html +++ b/Libros/biblioteca/gestion/templates/registration/signup.html @@ -13,7 +13,18 @@
{% csrf_token %} - {{ form }} + {% for field in form %} +

+ {{ field.label_tag }}
+ {{ field }} + {% if field.help_text %} + {{ field.help_text }} + {% endif %} + {% for error in field.errors %} +

{{ error }}

+ {% endfor %} +

+ {% endfor %}