From a717da96d18405306dc8017cda78d34ff8703a1c Mon Sep 17 00:00:00 2001 From: yfung Date: Mon, 27 Feb 2023 11:51:47 +0100 Subject: [PATCH] fix: use python 2 compatible method from `six` --- django_bouncy/models.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/django_bouncy/models.py b/django_bouncy/models.py index 44fc79e..5029f84 100644 --- a/django_bouncy/models.py +++ b/django_bouncy/models.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from django.db import models -from django.utils.encoding import python_2_unicode_compatible +from six import python_2_unicode_compatible class Feedback(models.Model): diff --git a/requirements.txt b/requirements.txt index 30a1db9..65a5e86 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ mock pyopenssl>=0.13.1 pem>=16.0.0 python-dateutil +six