diff options
| author | tom christie tom@tomchristie.com | 2011-04-02 16:32:37 +0100 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-04-02 16:32:37 +0100 |
| commit | 4687db680cda52e9836743940e4cf7279b307294 (patch) | |
| tree | 23b9b22eee3c08f6de09295b3c6630f5fb0730fa /djangorestframework/emitters.py | |
| parent | 8845b281fe9aafbc9f9b2a283fafbde9787f4734 (diff) | |
| download | django-rest-framework-4687db680cda52e9836743940e4cf7279b307294.tar.bz2 | |
Refactor to use self.CONTENT to access request body. Get file upload working
Diffstat (limited to 'djangorestframework/emitters.py')
| -rw-r--r-- | djangorestframework/emitters.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/djangorestframework/emitters.py b/djangorestframework/emitters.py index be1d7ef3..4cd462cb 100644 --- a/djangorestframework/emitters.py +++ b/djangorestframework/emitters.py @@ -13,7 +13,6 @@ from djangorestframework.validators import FormValidatorMixin from djangorestframework.utils import dict2xml, url_resolves from djangorestframework.markdownwrapper import apply_markdown from djangorestframework.breadcrumbs import get_breadcrumbs -from djangorestframework.content import OverloadedContentMixin from djangorestframework.description import get_name, get_description from djangorestframework import status @@ -254,7 +253,7 @@ class DocumentingTemplateEmitter(BaseEmitter): # If we're not using content overloading there's no point in supplying a generic form, # as the resource won't treat the form's value as the content of the request. - if not isinstance(resource, OverloadedContentMixin): + if not getattr(resource, 'USE_FORM_OVERLOADING', False): return None # NB. http://jacobian.org/writing/dynamic-form-generation/ |
