aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/utils
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/utils')
-rw-r--r--djangorestframework/utils/mediatypes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/djangorestframework/utils/mediatypes.py b/djangorestframework/utils/mediatypes.py
index 62a5e6f3..190cdc2d 100644
--- a/djangorestframework/utils/mediatypes.py
+++ b/djangorestframework/utils/mediatypes.py
@@ -43,6 +43,7 @@ def add_media_type_param(media_type, key, val):
media_type.params[key] = val
return str(media_type)
+
def get_media_type_params(media_type):
"""
Return a dictionary of the parameters on the given media type.