From 7dcb851c7f1e4bc01105fc5856494c196827fe2e Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 15 Jun 2011 14:09:01 +0100 Subject: Allow related models to be fully serialized --- examples/pygments_api/views.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'examples/pygments_api') diff --git a/examples/pygments_api/views.py b/examples/pygments_api/views.py index 76647107..e50029f6 100644 --- a/examples/pygments_api/views.py +++ b/examples/pygments_api/views.py @@ -46,19 +46,12 @@ class HTMLRenderer(BaseRenderer): media_type = 'text/html' - -class PygmentsFormResource(FormResource): - """ - """ - form = PygmentsForm - - class PygmentsRoot(View): """ - This example demonstrates a simple RESTful Web API aound the awesome pygments library. + This example demonstrates a simple RESTful Web API around the awesome pygments library. This top level resource is used to create highlighted code snippets, and to list all the existing code snippets. """ - resource = PygmentsFormResource + form = PygmentsForm def get(self, request): """ -- cgit v1.2.3