diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py index 7b18a2ffa..ee6a56679 100644 --- a/bookwyrm/forms.py +++ b/bookwyrm/forms.py @@ -99,7 +99,7 @@ class EditUserForm(CustomForm): class Meta: model = models.User fields = [ - 'avatar', 'name', 'email', 'summary', 'manually_approves_followers' + 'avatar', 'name', 'summary', 'manually_approves_followers' ] help_texts = {f: None for f in fields} diff --git a/bookwyrm/templates/edit_user.html b/bookwyrm/templates/edit_user.html index df620df4c..1d2db7062 100644 --- a/bookwyrm/templates/edit_user.html +++ b/bookwyrm/templates/edit_user.html @@ -2,24 +2,32 @@ {% block content %}
+

Profile

+ {% if form.non_field_errors %} +

{{ form.non_field_errors }}

+ {% endif %}
{% csrf_token %} -

Profile

{{ form.avatar }} + {% for error in form.avatar.errors %} +

{{ error | escape }}

+ {% endfor %}

{{ form.name }} + {% for error in form.name.errors %} +

{{ error | escape }}

+ {% endfor %}

{{ form.summary }} -

-

- - {{ form.email }} + {% for error in form.summary.errors %} +

{{ error | escape }}

+ {% endfor %}