aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/templates
diff options
context:
space:
mode:
authorTom Christie2011-04-29 14:32:56 +0100
committerTom Christie2011-04-29 14:32:56 +0100
commitb358fbdbe9cbd4ce644c4b2c7b9b4cec0811e14e (patch)
tree601e5576995809b74f914cafcee8a7a8cd9c6937 /djangorestframework/templates
parent93aa065fa92f64472a3ee80564020a81776be742 (diff)
downloaddjango-rest-framework-b358fbdbe9cbd4ce644c4b2c7b9b4cec0811e14e.tar.bz2
More refactoring - move various less core stuff into utils etc
Diffstat (limited to 'djangorestframework/templates')
-rw-r--r--djangorestframework/templates/renderer.html (renamed from djangorestframework/templates/emitter.html)2
-rw-r--r--djangorestframework/templates/renderer.txt (renamed from djangorestframework/templates/emitter.txt)0
2 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/templates/emitter.html b/djangorestframework/templates/renderer.html
index 1931ad39..105ea0a2 100644
--- a/djangorestframework/templates/emitter.html
+++ b/djangorestframework/templates/renderer.html
@@ -48,7 +48,7 @@
<h2>GET {{ name }}</h2>
<div class='submit-row' style='margin: 0; border: 0'>
<a href='{{ request.path }}' rel="nofollow" style='float: left'>GET</a>
- {% for media_type in resource.emitted_media_types %}
+ {% for media_type in resource.renderted_media_types %}
{% with resource.ACCEPT_QUERY_PARAM|add:"="|add:media_type as param %}
[<a href='{{ request.path|add_query_param:param }}' rel="nofollow">{{ media_type }}</a>]
{% endwith %}
diff --git a/djangorestframework/templates/emitter.txt b/djangorestframework/templates/renderer.txt
index 5be8c117..5be8c117 100644
--- a/djangorestframework/templates/emitter.txt
+++ b/djangorestframework/templates/renderer.txt