aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/utils.py')
-rw-r--r--djangorestframework/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/djangorestframework/utils.py b/djangorestframework/utils.py
index bc797d60..266d1ca6 100644
--- a/djangorestframework/utils.py
+++ b/djangorestframework/utils.py
@@ -3,12 +3,18 @@ import xml.etree.ElementTree as ET
from django.utils.encoding import smart_unicode
from django.utils.xmlutils import SimplerXMLGenerator
from django.core.urlresolvers import resolve
+from django.conf import settings
try:
import cStringIO as StringIO
except ImportError:
import StringIO
+#def admin_media_prefix(request):
+# """Adds the ADMIN_MEDIA_PREFIX to the request context."""
+# return {'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX}
+
+
def as_tuple(obj):
"""Given obj return a tuple"""
if obj is None: