# HG changeset patch
# User sarahboyce@localhost.localdomain
# Date 1695390294 -7200
# Fri Sep 22 15:44:54 2023 +0200
# Node ID c0672089c42607eda5f423483cdc79092c9d1efa
# Parent 76e93d43501e5304d6b27e7f7072e4d8aab15104
Removed usages of django.utils.timezone.utc for Django 5.0 support.
diff --git a/impersonate/middleware.py b/impersonate/middleware.py
--- a/impersonate/middleware.py
+++ b/impersonate/middleware.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, timezone
from django.http import HttpResponseNotAllowed
from django.shortcuts import redirect, reverse
-from django.utils import timezone
from django.utils.deprecation import MiddlewareMixin
from django.utils.functional import SimpleLazyObject
diff --git a/impersonate/views.py b/impersonate/views.py
--- a/impersonate/views.py
+++ b/impersonate/views.py
@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-
import logging
-from datetime import datetime
+from datetime import datetime, timezone
from django.db.models import Q
from django.http import Http404
from django.shortcuts import get_object_or_404, redirect, render
-from django.utils import timezone
from .decorators import allowed_user_required
from .helpers import (