diff options
| author | Tom Christie | 2012-08-25 20:37:20 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-08-25 20:37:20 +0100 |
| commit | 9449dcdd0682b76c009acbcd47abc933e6819713 (patch) | |
| tree | 754dbbeefea63baf7fe4691294ad4e9590c826c1 | |
| parent | 9d5f37d9b6900d5fb5989d3343c59c868db731d2 (diff) | |
| download | django-rest-framework-9449dcdd0682b76c009acbcd47abc933e6819713.tar.bz2 | |
Quote urls in templates
| -rw-r--r-- | djangorestframework/templates/djangorestframework/base.html | 4 | ||||
| -rw-r--r-- | djangorestframework/templates/djangorestframework/login.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/djangorestframework/templates/djangorestframework/base.html b/djangorestframework/templates/djangorestframework/base.html index 00ecf8c3..f84efb38 100644 --- a/djangorestframework/templates/djangorestframework/base.html +++ b/djangorestframework/templates/djangorestframework/base.html @@ -23,10 +23,10 @@ {% block userlinks %} {% if user.is_active %} Welcome, {{ user }}. - <a href='{% url djangorestframework:logout %}?next={{ request.path }}'>Log out</a> + <a href='{% url 'djangorestframework:logout' %}?next={{ request.path }}'>Log out</a> {% else %} Anonymous - <a href='{% url djangorestframework:login %}?next={{ request.path }}'>Log in</a> + <a href='{% url 'djangorestframework:login' %}?next={{ request.path }}'>Log in</a> {% endif %} {% endblock %} </div> diff --git a/djangorestframework/templates/djangorestframework/login.html b/djangorestframework/templates/djangorestframework/login.html index 248744df..6c328d58 100644 --- a/djangorestframework/templates/djangorestframework/login.html +++ b/djangorestframework/templates/djangorestframework/login.html @@ -17,7 +17,7 @@ <div id="content" class="colM"> <div id="content-main"> - <form method="post" action="{% url djangorestframework:login %}" id="login-form"> + <form method="post" action="{% url 'djangorestframework:login' %}" id="login-form"> {% csrf_token %} <div class="form-row"> <label for="id_username">Username:</label> {{ form.username }} |
