Added Django 1.4 compatibility by using future urlnames.

This commit is contained in:
Martin Mahner 2013-11-26 11:08:36 +01:00
parent 0f76cb944c
commit e9ef15454d
7 changed files with 15 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{% extends "dpaste/base.html" %} {% extends "dpaste/base.html" %}
{% load i18n %} {% load i18n %}
{% load url from future %}
{% block title %}About dpaste.de{% endblock %} {% block title %}About dpaste.de{% endblock %}
{% block headline %}About dpaste.de{% endblock %} {% block headline %}About dpaste.de{% endblock %}

View file

@ -1,4 +1,8 @@
{% load i18n staticfiles %}<!DOCTYPE html> {% load i18n %}
{% load staticfiles %}
{% load url from future %}
<!DOCTYPE html>
<html> <html>
<head> <head>
<title>dpaste.de: {% block title %}{% trans "New snippet" %}{% endblock %}</title> <title>dpaste.de: {% block title %}{% trans "New snippet" %}{% endblock %}</title>

View file

@ -1,7 +1,9 @@
{% extends "dpaste/base.html" %} {% extends "dpaste/base.html" %}
{% load mptt_tags %} {% load mptt_tags %}
{% load i18n %} {% load i18n %}
{% load dpaste_tags %} {% load dpaste_tags %}
{% load url from future %}
{% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %} {% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}
{% block headline %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %} {% block headline %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %}

View file

@ -1,4 +1,5 @@
{% load i18n %} {% load i18n %}
{% load url from future %}
<h4> <h4>
{% blocktrans with fileA.get_absolute_url as filea_url and fileB.get_absolute_url as fileb_url and fileA.id as filea_id and fileB.id as fileb_id %} {% blocktrans with fileA.get_absolute_url as filea_url and fileB.get_absolute_url as fileb_url and fileA.id as filea_id and fileB.id as fileb_id %}

View file

@ -1,4 +1,5 @@
{% load i18n %} {% load i18n %}
{% load url from future %}
<form method="post" action="" class="form-horizontal"> <form method="post" action="" class="form-horizontal">
{% csrf_token %} {% csrf_token %}

View file

@ -1,6 +1,7 @@
{% extends "dpaste/base.html" %} {% extends "dpaste/base.html" %}
{% load i18n %} {% load i18n %}
{% load url from future %}
{% load dpaste_tags %} {% load dpaste_tags %}
{% block title %}Snippet History{% endblock %} {% block title %}Snippet History{% endblock %}

View file

@ -1,5 +1,7 @@
{% extends "dpaste/base.html" %} {% extends "dpaste/base.html" %}
{% load i18n %} {% load i18n %}
{% load url from future %}
{% block title %}{% trans "New snippet" %}{% endblock %} {% block title %}{% trans "New snippet" %}{% endblock %}
{% block headline %}{% trans "New snippet" %}{% endblock %} {% block headline %}{% trans "New snippet" %}{% endblock %}