diff --git a/biscuit/core/views.py b/biscuit/core/views.py
index ad982e2cb876bd8ae1510f6eabe0b023c5acc892..a5d5f245054672390f35fa92587af6b75340caa3 100644
--- a/biscuit/core/views.py
+++ b/biscuit/core/views.py
@@ -3,7 +3,7 @@ from typing import Callable
 from django.contrib.auth.decorators import login_required
 from django.conf import settings
 from django.http import Http404, HttpRequest, HttpResponse
-from django.shortcuts import render
+from django.shortcuts import get_object_or_404, render
 from django_tables2 import RequestConfig
 from django.utils.translation import ugettext_lazy as _