diff --git a/armstrong/hatband/views/search.py b/armstrong/hatband/views/search.py
index <HASH>..<HASH> 100644
--- a/armstrong/hatband/views/search.py
+++ b/armstrong/hatband/views/search.py
@@ -114,9 +114,9 @@ class ModelPreviewMixin(ArmstrongBaseMixin):
 
     def render_model_preview(self, request):
         try:
-            content_type_id = request.GET["content_type"]
-            object_id = request.GET["object_id"]
-        except KeyError:
+            content_type_id = int(request.GET["content_type"])
+            object_id = int(request.GET["object_id"])
+        except (ValueError, KeyError):
             return HttpResponseBadRequest()
 
         try:
<I> on a bad preview request - we expect numbers