Ignore:
Timestamp:
Jun 15, 2014, 10:06:46 PM (11 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master
Children:
6479b5c
Parents:
2e4e1fb
git-author:
Alex Dehnert <adehnert@…> (06/15/14 21:36:47)
git-committer:
Alex Dehnert <adehnert@…> (06/15/14 22:06:46)
Message:

Django 1.6: use new {% url %} syntax

Starting in Django 1.5, the argument to {% url %} is treated as a variable,
rather than a literal. To get a literal, we need to enclose the argument in
quotes. For Django 1.4 support, we also want to do {% load url from future %}
-- probably in more places than just base.html, but we'll see.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/remit_templates/registration/login.html

    r1ba734f r695d358  
    11{% extends "base.html" %}
     2{% load url from future %}
    23
    34{% block title %}Log in to Remit{% endblock %}
     
    1112{% endif %}
    1213
    13 <form method="post" action="{% url django.contrib.auth.views.login %}">
     14<form method="post" action="{% url "django.contrib.auth.views.login" %}">
    1415{% csrf_token %}
    1516<table>
Note: See TracChangeset for help on using the changeset viewer.