From 50ae43537c6d3da8aba4d52450c5b82b3f79e516 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 10 Feb 2011 16:31:10 -0400 Subject: [PATCH] Cleanups --- .../templates/generic_form_instance.html | 2 +- .../templates/generic_form_subtemplate.html | 6 ++-- apps/common/templates/generic_list.html | 2 +- .../templates/generic_list_subtemplate.html | 4 +-- apps/common/utils.py | 6 ++-- apps/documents/conf/settings.py | 6 ++++ apps/documents/forms.py | 24 +++------------ apps/documents/staging.py | 3 +- apps/documents/urls.py | 2 -- apps/documents/views.py | 29 +++++-------------- apps/main/__init__.py | 2 +- apps/main/templates/about.html | 2 +- apps/main/templates/base.html | 4 +-- apps/main/views.py | 3 ++ settings.py | 16 ++++++---- urls.py | 4 +-- wsgi/dispatch.wsgi | 6 ++-- 17 files changed, 52 insertions(+), 69 deletions(-) diff --git a/apps/common/templates/generic_form_instance.html b/apps/common/templates/generic_form_instance.html index 13dbf0c933..a6c5b688e0 100755 --- a/apps/common/templates/generic_form_instance.html +++ b/apps/common/templates/generic_form_instance.html @@ -34,7 +34,7 @@ {% for field in form.visible_fields %}
{% if field.errors %}
{% endif %} - + {% if field.errors %}{% for error in field.errors %}{{ error }}{% if not forloop.last %} | {% endif %}{% endfor %}
{% endif %} {{ field }} {% if field.help_text %}{{ field.help_text }}{% endif %} diff --git a/apps/common/templates/generic_form_subtemplate.html b/apps/common/templates/generic_form_subtemplate.html index 6d92098022..4cee0dac94 100755 --- a/apps/common/templates/generic_form_subtemplate.html +++ b/apps/common/templates/generic_form_subtemplate.html @@ -27,7 +27,7 @@ {% endif %} - {% if submit_method != 'GET' and submit_method != 'get' %} + {% if submit_method != "GET" and submit_method != "get" %} {% csrf_token %} {% endif %} @@ -45,7 +45,7 @@ {% for field in formset.forms.0.visible_fields %} - {{ field.label_tag }}{% if field.field.required and not read_only %} ({% trans 'required' %}){% endif %} + {{ field.label_tag }}{% if field.field.required and not read_only %} ({% trans "required" %}){% endif %} {#{% if field.help_text %}{{ field.help_text }}{% endif %}#} {% endfor %} @@ -67,7 +67,7 @@ {% if not read_only %}