From 50efa106529e03eda5607e6c9323838432ce755f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Sat, 25 Jun 2011 10:25:26 +0100 Subject: [PATCH 1/5] Add version to html --- djangorestframework/renderers.py | 2 ++ djangorestframework/templates/renderer.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py index 56939bbce..13cd52f5c 100644 --- a/djangorestframework/renderers.py +++ b/djangorestframework/renderers.py @@ -17,6 +17,7 @@ from djangorestframework.utils import dict2xml, url_resolves from djangorestframework.utils.breadcrumbs import get_breadcrumbs from djangorestframework.utils.description import get_name, get_description from djangorestframework.utils.mediatypes import get_media_type_params, add_media_type_param, media_type_matches +from djangorestframework import VERSION from decimal import Decimal import re @@ -285,6 +286,7 @@ class DocumentingTemplateRenderer(BaseRenderer): 'response': self.view.response, 'description': description, 'name': name, + 'version': VERSION, 'markeddown': markeddown, 'breadcrumblist': breadcrumb_list, 'available_media_types': self.view._rendered_media_types, diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html index 94748d28a..97d3837a3 100644 --- a/djangorestframework/templates/renderer.html +++ b/djangorestframework/templates/renderer.html @@ -18,7 +18,7 @@