Commit 4ba4aa8dc4fdbb5c36726545522623e438105071

Authored by Zambom
1 parent 5179dc01

Fixing description presentation in profile

users/forms.py
... ... @@ -195,7 +195,7 @@ class PassResetRequest(forms.Form):
195 195 validate_email( email )
196 196 return email
197 197 except ValidationError:
198   - self._errors['email'] = [_('You must insert an email address')]
  198 + self._errors['email'] = [_('You must insert a valid email address')]
199 199  
200 200 return ValueError
201 201  
... ...
users/templates/users/profile.html
... ... @@ -59,7 +59,9 @@
59 59 <div class="row-fluid">
60 60 <label class="control-form">{% trans 'Description' %}:</label>
61 61 <div class="col-md-12">
62   - {{ user.description|default:_("Not Informed") }}
  62 + {% autoescape off %}
  63 + {{ user.description|default:_("Not Informed") }}
  64 + {% endautoescape %}
63 65 </div>
64 66 </div>
65 67 </div>
... ...