diff options
| author | Tom Christie | 2011-05-31 14:40:30 +0100 | 
|---|---|---|
| committer | Tom Christie | 2011-05-31 14:40:30 +0100 | 
| commit | fc1640de75511006e89f033c9270ec91a9f1e4d4 (patch) | |
| tree | ca3791999f5cddd3087995f60338d04559b116fd | |
| parent | bb5b0eb80a3f57b399f437d81a945467a777ba8a (diff) | |
| download | django-rest-framework-fc1640de75511006e89f033c9270ec91a9f1e4d4.tar.bz2 | |
Fix query parameters getting lost
| -rw-r--r-- | djangorestframework/templates/renderer.html | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html index 09b17df7..94748d28 100644 --- a/djangorestframework/templates/renderer.html +++ b/djangorestframework/templates/renderer.html @@ -47,10 +47,10 @@  				<fieldset class='module aligned'>  				<h2>GET {{ name }}</h2>  				<div class='submit-row' style='margin: 0; border: 0'> -				<a href='{{ request.path }}' rel="nofollow" style='float: left'>GET</a> +				<a href='{{ request.get_full_path }}' rel="nofollow" style='float: left'>GET</a>  				{% for media_type in available_media_types %}  				  {% with ACCEPT_PARAM|add:"="|add:media_type as param %} -				    [<a href='{{ request.path|add_query_param:param }}' rel="nofollow">{{ media_type }}</a>] +				    [<a href='{{ request.get_full_path|add_query_param:param }}' rel="nofollow">{{ media_type }}</a>]  				  {% endwith %}  				{% endfor %}  				</div> @@ -62,7 +62,7 @@  	{% if METHOD_PARAM %}  		{% if 'POST' in view.allowed_methods %} -				<form action="{{ request.path }}" method="post" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %}> +				<form action="{{ request.get_full_path }}" method="post" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %}>  				<fieldset class='module aligned'>  					<h2>POST {{ name }}</h2>  				    {% csrf_token %} @@ -83,7 +83,7 @@  		{% endif %}  		{% if 'PUT' in view.allowed_methods %} -				<form action="{{ request.path }}" method="post" {% if put_form.is_multipart %}enctype="multipart/form-data"{% endif %}> +				<form action="{{ request.get_full_path }}" method="post" {% if put_form.is_multipart %}enctype="multipart/form-data"{% endif %}>  				<fieldset class='module aligned'>  					<h2>PUT {{ name }}</h2>  					<input type="hidden" name="{{ METHOD_PARAM }}" value="PUT" /> @@ -105,7 +105,7 @@  		{% endif %}  		{% if 'DELETE' in view.allowed_methods %} -				<form action="{{ request.path }}" method="post"> +				<form action="{{ request.get_full_path }}" method="post">  				<fieldset class='module aligned'>			  					<h2>DELETE {{ name }}</h2>  				    {% csrf_token %} | 
