From f016630e0e481517495b8a395987f831c1ccc681 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 9 Jan 2013 15:27:30 +0100 Subject: [PATCH] fix form height, bugfix profile --- teleforma/forms.py | 2 +- teleforma/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/forms.py b/teleforma/forms.py index 161a0fe1..4ddbd60f 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -21,7 +21,7 @@ class AnswerForm(ModelForm): def __init__(self, *args, **kwargs): super(AnswerForm, self).__init__(*args, **kwargs) self.fields['answer'].widget.attrs['cols'] = 81 - self.fields['answer'].widget.attrs['rows'] = 40 + self.fields['answer'].widget.attrs['rows'] = 32 self.fields['status'].widget = HiddenInput() class Meta: diff --git a/teleforma/urls.py b/teleforma/urls.py index 2ea067e3..51011d43 100644 --- a/teleforma/urls.py +++ b/teleforma/urls.py @@ -114,7 +114,7 @@ urlpatterns = patterns('', # Users url(r'^users/$', UsersView.as_view(), name="teleforma-users"), - url(r'^users/(?P[A-Za-z0-9@._-]+)/profile/$', profile_view.profile_detail, + url(r'^users/(?P[A-Za-z0-9@+._-]+)/profile/$', profile_view.profile_detail, name="teleforma-profile-detail"), url(r'^users/(?P.*)/login/$', UserLoginView.as_view(), name="teleforma-user-login"), url(r'^users/all/export/$', user_export.all, name="teleforma-users-xls-export"), -- 2.39.5