diff --git a/rest_framework/utils/html.py b/rest_framework/utils/html.py
index e825bdbeb..df08770f1 100644
--- a/rest_framework/utils/html.py
+++ b/rest_framework/utils/html.py
@@ -1,6 +1,7 @@
"""
Helpers for dealing with HTML input.
"""
+import json
import re
from django.utils.datastructures import MultiValueDict