Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
fc1640de
Commit
fc1640de
authored
May 31, 2011
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix query parameters getting lost
parent
bb5b0eb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
djangorestframework/templates/renderer.html
+5
-5
No files found.
djangorestframework/templates/renderer.html
View file @
fc1640de
...
@@ -47,10 +47,10 @@
...
@@ -47,10 +47,10 @@
<fieldset
class=
'module aligned'
>
<fieldset
class=
'module aligned'
>
<h2>
GET {{ name }}
</h2>
<h2>
GET {{ name }}
</h2>
<div
class=
'submit-row'
style=
'margin: 0; border: 0'
>
<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 %}
{% for media_type in available_media_types %}
{% with ACCEPT_PARAM|add:"="|add:media_type as param %}
{% 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 %}
{% endwith %}
{% endfor %}
{% endfor %}
</div>
</div>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
{% if METHOD_PARAM %}
{% if METHOD_PARAM %}
{% if 'POST' in view.allowed_methods %}
{% 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'
>
<fieldset
class=
'module aligned'
>
<h2>
POST {{ name }}
</h2>
<h2>
POST {{ name }}
</h2>
{% csrf_token %}
{% csrf_token %}
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
{% endif %}
{% endif %}
{% if 'PUT' in view.allowed_methods %}
{% 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'
>
<fieldset
class=
'module aligned'
>
<h2>
PUT {{ name }}
</h2>
<h2>
PUT {{ name }}
</h2>
<input
type=
"hidden"
name=
"{{ METHOD_PARAM }}"
value=
"PUT"
/>
<input
type=
"hidden"
name=
"{{ METHOD_PARAM }}"
value=
"PUT"
/>
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
{% endif %}
{% endif %}
{% if 'DELETE' in view.allowed_methods %}
{% if 'DELETE' in view.allowed_methods %}
<form
action=
"{{ request.path }}"
method=
"post"
>
<form
action=
"{{ request.
get_full_
path }}"
method=
"post"
>
<fieldset
class=
'module aligned'
>
<fieldset
class=
'module aligned'
>
<h2>
DELETE {{ name }}
</h2>
<h2>
DELETE {{ name }}
</h2>
{% csrf_token %}
{% csrf_token %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment