mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-09 16:10:50 +03:00
Fixed YAMLParser = None
This commit is contained in:
parent
20c7e605c9
commit
3e0a978dd9
|
@ -108,7 +108,8 @@ if yaml:
|
||||||
except ValueError, exc:
|
except ValueError, exc:
|
||||||
raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
|
raise ErrorResponse(status.HTTP_400_BAD_REQUEST,
|
||||||
{'detail': 'YAML parse error - %s' % unicode(exc)})
|
{'detail': 'YAML parse error - %s' % unicode(exc)})
|
||||||
|
else:
|
||||||
|
YAMLParser = None
|
||||||
|
|
||||||
class PlainTextParser(BaseParser):
|
class PlainTextParser(BaseParser):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user