From 0578957288d306f5c5c24ef66b2f561510605672 Mon Sep 17 00:00:00 2001
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Sun, 31 Jul 2022 13:27:17 +0000
Subject: [PATCH] Add patch for Django 4 compatibility (Closes: #1013466).

---
 debian/changelog                              |  1 +
 .../patches/0001-Django-4-compatibility.patch | 19 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 21 insertions(+)
 create mode 100644 debian/patches/0001-Django-4-compatibility.patch
 create mode 100644 debian/patches/series

diff --git a/debian/changelog b/debian/changelog
index 6926965..5f007a7 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 0000000..98b3530
--- /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 0000000..9bf0781
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Django-4-compatibility.patch
-- 
GitLab