[damned-lies] Fixed person edit form
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fixed person edit form
- Date: Thu, 12 Jan 2017 18:51:50 +0000 (UTC)
commit 8a40acb0827e2a48ae8306f4ab05fc059567e223
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Jan 12 19:50:15 2017 +0100
Fixed person edit form
Fixes #777046, regression after unicode char added in help text.
Thanks Kukuh Syafaat for the report.
people/models.py | 2 ++
people/tests.py | 2 ++
templates/people/person_detail_change_form.html | 2 +-
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/people/models.py b/people/models.py
index 4bf5062..03c3097 100644
--- a/people/models.py
+++ b/people/models.py
@@ -18,6 +18,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import unicode_literals
+
import datetime
import re
from django.core.exceptions import ObjectDoesNotExist
diff --git a/people/tests.py b/people/tests.py
index 89e9d3d..8e778f4 100644
--- a/people/tests.py
+++ b/people/tests.py
@@ -73,6 +73,8 @@ class PeopleTestCase(TestCase):
def test_edit_details(self):
self.pn = self._create_person()
self.client.login(username='jn', password='password')
+ response = self.client.get(reverse('person_detail_change'))
+ self.assertContains(response, "First name")
post_data = {
'first_name': "Johnny", 'last_name': "Nothing", 'email': 'test02 example org',
'image': '', 'webpage_url': "http://www.example.org/"
diff --git a/templates/people/person_detail_change_form.html b/templates/people/person_detail_change_form.html
index 440cd15..e1bbfe4 100644
--- a/templates/people/person_detail_change_form.html
+++ b/templates/people/person_detail_change_form.html
@@ -4,7 +4,7 @@
{% block subcontent %}
-<h2>{% trans "Change your details" %}</h2>
+<h2 class="clear">{% trans "Change your details" %}</h2>
<form action="{{ request.path }}" method="POST" class="djform">
{% csrf_token %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]