diff options
| author | Tom Christie | 2011-04-27 18:07:28 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-04-27 18:07:28 +0100 |
| commit | 028851bfa1ee44b8e92808b18d32278d4a473cc8 (patch) | |
| tree | 7a9497fef627d83bbc75dbd21294ff813216c828 /examples/mixin/urls.py | |
| parent | 762a52edde09297e87c640797219c9bb8255d50a (diff) | |
| download | django-rest-framework-028851bfa1ee44b8e92808b18d32278d4a473cc8.tar.bz2 | |
Fix up tests and examples after refactoring
Diffstat (limited to 'examples/mixin/urls.py')
| -rw-r--r-- | examples/mixin/urls.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/mixin/urls.py b/examples/mixin/urls.py index 05009284..96b630e3 100644 --- a/examples/mixin/urls.py +++ b/examples/mixin/urls.py @@ -1,12 +1,13 @@ from djangorestframework.compat import View # Use Django 1.3's django.views.generic.View, or fall back to a clone of that if Django < 1.3 -from djangorestframework.emitters import EmitterMixin, DEFAULT_EMITTERS +from djangorestframework.mixins import ResponseMixin +from djangorestframework.emitters import DEFAULT_EMITTERS from djangorestframework.response import Response from django.conf.urls.defaults import patterns, url from django.core.urlresolvers import reverse -class ExampleView(EmitterMixin, View): +class ExampleView(ResponseMixin, View): """An example view using Django 1.3's class based views. Uses djangorestframework's EmitterMixin to provide support for multiple output formats.""" emitters = DEFAULT_EMITTERS |
