mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 18:13:57 +03:00
Quote urls in templates
This commit is contained in:
parent
9d5f37d9b6
commit
9449dcdd06
|
@ -23,10 +23,10 @@
|
||||||
{% block userlinks %}
|
{% block userlinks %}
|
||||||
{% if user.is_active %}
|
{% if user.is_active %}
|
||||||
Welcome, {{ user }}.
|
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 %}
|
{% else %}
|
||||||
Anonymous
|
Anonymous
|
||||||
<a href='{% url djangorestframework:login %}?next={{ request.path }}'>Log in</a>
|
<a href='{% url 'djangorestframework:login' %}?next={{ request.path }}'>Log in</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<div id="content" class="colM">
|
<div id="content" class="colM">
|
||||||
<div id="content-main">
|
<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 %}
|
{% csrf_token %}
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="id_username">Username:</label> {{ form.username }}
|
<label for="id_username">Username:</label> {{ form.username }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user