diff --git a/django_user_agents/middleware.py b/django_user_agents/middleware.py
index <HASH>..<HASH> 100644
--- a/django_user_agents/middleware.py
+++ b/django_user_agents/middleware.py
@@ -1,9 +1,10 @@
 from django.utils.functional import SimpleLazyObject
+from django.utils.deprecation import MiddlewareMixin
 
 from .utils import get_user_agent
 
 
-class UserAgentMiddleware(object):
+class UserAgentMiddleware(MiddlewareMixin):
     # A middleware that adds a "user_agent" object to request
     def process_request(self, request):
         request.user_agent = SimpleLazyObject(lambda: get_user_agent(request))
Update middleware to be django<I>-compatible