From 7d298dbc1f1560750e98a0bb21a0616bafa7a338 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 28 May 2015 23:58:17 +0200 Subject: [PATCH] upgrade to django 1.6.x --- teleforma/exam/urls.py | 5 ++-- teleforma/templates/postman/base.html | 10 +++---- teleforma/templates/postman/base_folder.html | 12 ++++---- teleforma/templates/postman/view.html | 12 ++++---- teleforma/templates/teleforma/annals.html | 10 +++---- teleforma/templates/teleforma/course.html | 2 +- .../teleforma/course_conference.html | 10 +++---- .../teleforma/course_conference_audio.html | 6 ++-- .../teleforma/course_conference_record.html | 2 +- .../templates/teleforma/course_detail.html | 4 +-- .../templates/teleforma/course_document.html | 4 +-- .../templates/teleforma/course_media.html | 12 ++++---- .../teleforma/course_media_video_embed.html | 4 +-- teleforma/templates/teleforma/courses.html | 8 +++--- .../teleforma/inc/conference_list.html | 4 +-- .../teleforma/inc/document_list.html | 4 +-- .../templates/teleforma/inc/media_list.html | 4 +-- teleforma/templates/telemeta/base.html | 28 +++++++++---------- teleforma/templates/telemeta/home.html | 2 +- .../telemeta/inc/module_revisions.html | 14 +++++----- .../telemeta/inc/module_searches.html | 2 +- .../telemeta/inc/module_user_revisions.html | 4 +-- .../templates/telemeta/inc/user_list.html | 6 ++-- teleforma/templates/telemeta/lists.html | 12 ++++---- teleforma/templates/telemeta/login.html | 4 +-- .../templates/telemeta/profile_detail.html | 10 +++---- .../templates/telemeta/search_criteria.html | 4 +-- teleforma/templates/telemeta/users.html | 10 +++---- teleforma/urls.py | 7 +++-- 29 files changed, 108 insertions(+), 108 deletions(-) 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" %}