From: Guillaume Pellerin Date: Thu, 28 May 2015 21:58:17 +0000 (+0200) Subject: upgrade to django 1.6.x X-Git-Tag: 1.1~232^2~5^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7d298dbc1f1560750e98a0bb21a0616bafa7a338;p=teleforma.git upgrade to django 1.6.x --- diff --git a/teleforma/exam/urls.py b/teleforma/exam/urls.py index 43292404..0e056b2a 100644 --- a/teleforma/exam/urls.py +++ b/teleforma/exam/urls.py @@ -33,9 +33,8 @@ # Authors: Guillaume Pellerin import os.path -from django.conf.urls.defaults import * -from django.views.generic import * -from django.views.generic.base import * +from django.conf.urls import patterns, url, include +from django.http import HttpResponse from teleforma.exam.models import * from teleforma.exam.views import * from jsonrpc import jsonrpc_site diff --git a/teleforma/templates/postman/base.html b/teleforma/templates/postman/base.html index cc500fb3..254de435 100644 --- a/teleforma/templates/postman/base.html +++ b/teleforma/templates/postman/base.html @@ -12,15 +12,15 @@
{% postman_unread as unread_count %}
diff --git a/teleforma/templates/postman/base_folder.html b/teleforma/templates/postman/base_folder.html index a46c0661..e089c004 100644 --- a/teleforma/templates/postman/base_folder.html +++ b/teleforma/templates/postman/base_folder.html @@ -47,13 +47,13 @@ - {% block pm_sender_cell %}{% if message.is_new %}{% endif %}{{ message.obfuscated_sender|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% if message.is_new %}{% endif %}{% endblock %} + {% block pm_sender_cell %}{% if message.is_new %}{% endif %}{{ message.obfuscated_sender|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% if message.is_new %}{% endif %}{% endblock %} - {% block pm_recipient_cell %}{{ message.obfuscated_recipient|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% endblock %} + {% block pm_recipient_cell %}{{ message.obfuscated_recipient|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% endblock %} {% if message.is_new %}{% endif %}{% if message.is_replied %}{% endif %} {% block pm_subject %} - + {% include "postman/inc_subject_ex.html" %} {% endblock %} {% if message.is_replied %}{% endif %}{% if message.is_new %}{% endif %} @@ -66,13 +66,13 @@
{% block pm_form_buttons %} {% block pm_delete_button %} -{% trans "Delete" %} +{% trans "Delete" %} {% endblock %} {% block pm_archive_button %} -{% trans "Archive" %} +{% trans "Archive" %} {% endblock %} {% block pm_undelete_button %} -{% trans "Undelete" %} +{% trans "Undelete" %} {% endblock %} {% endblock %} diff --git a/teleforma/templates/postman/view.html b/teleforma/templates/postman/view.html index 4626eda4..1d641d0c 100644 --- a/teleforma/templates/postman/view.html +++ b/teleforma/templates/postman/view.html @@ -14,10 +14,10 @@ {% for message in pm_messages %}
- + {{ message.obfuscated_sender|or_me:user }} » - + {{ message.obfuscated_recipient|or_me:user }} | {{ message.sent_at|date:"DATETIME_FORMAT"}} | @@ -36,19 +36,19 @@ {% trans "Back" %} {% block pm_delete_button %} -{% trans "Delete" %} +{% trans "Delete" %} {% endblock %} {% block pm_archive_button %} {% if not archived %} -{% trans "Archive" %} +{% trans "Archive" %} {% endif %} {% endblock %} -{% if reply_to_pk %}{% trans "Reply" %}{% endif %} +{% if reply_to_pk %}{% trans "Reply" %}{% endif %} {% if reply_to_pk %}

{% trans 'Reply' %}

-
{% csrf_token %} +{% csrf_token %}
{{ form.body }}

{% trans "Reply" %} diff --git a/teleforma/templates/teleforma/annals.html b/teleforma/templates/teleforma/annals.html index 2e0c8f5b..2d481f42 100644 --- a/teleforma/templates/teleforma/annals.html +++ b/teleforma/templates/teleforma/annals.html @@ -12,13 +12,13 @@
-

playlists{% trans "My courses" %}

+

playlists{% trans "My courses" %}