diff --git a/debian/changelog b/debian/changelog
index 6926965a9854d1be8c0bdd02d95e1a46ba3b5a9c..5f007a7fbab6ff6d08a98bba4e33408e8d149546 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 python-django-rest-framework-guardian (0.3.0-4) UNRELEASED; urgency=medium
 
   * Use github tags instead of releases for d/watch.
+  * Add patch for Django 4 compatibility (Closes: #1013466).
 
  -- Michael Fladischer <fladi@debian.org>  Sun, 07 Nov 2021 20:13:03 +0000
 
diff --git a/debian/patches/0001-Django-4-compatibility.patch b/debian/patches/0001-Django-4-compatibility.patch
new file mode 100644
index 0000000000000000000000000000000000000000..98b3530f94a2d6a76ac35ea41acaff45cfe41331
--- /dev/null
+++ b/debian/patches/0001-Django-4-compatibility.patch
@@ -0,0 +1,19 @@
+From: Michael Fladischer <FladischerMichael@fladi.at>
+Date: Sun, 31 Jul 2022 12:57:42 +0000
+Subject: Django 4 compatibility.
+
+---
+ tests/models.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/models.py b/tests/models.py
+index f08b5e8..8a0ba7d 100644
+--- a/tests/models.py
++++ b/tests/models.py
+@@ -1,5 +1,5 @@
+ from django.db import models
+-from django.utils.translation import ugettext_lazy as _
++from django.utils.translation import gettext_lazy as _
+ 
+ 
+ class BasicModel(models.Model):
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000000000000000000000000000000000000..9bf07815f0947cac9a84ff4e07a1004026507809
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Django-4-compatibility.patch