* Fix paver violations to stablize edx-lint update * Parens, Line2Long * Fix missing docstrings * Fix PEP8 issues * Address PR feedback (thanks @nedbat!)
12 lines
322 B
Python
12 lines
322 B
Python
"""
|
|
Custom Django REST Framework request/response pipeline parsers
|
|
"""
|
|
from rest_framework import parsers
|
|
|
|
|
|
class MergePatchParser(parsers.JSONParser):
|
|
"""
|
|
Custom parser to be used with the "merge patch" implementation (https://tools.ietf.org/html/rfc7396).
|
|
"""
|
|
media_type = 'application/merge-patch+json'
|