From 10e1c279e949359f76de406a946e82831a84eeaa Mon Sep 17 00:00:00 2001 From: Michael Benin Date: Thu, 10 Nov 2022 17:12:34 -0500 Subject: [PATCH] Update for later versions of django https://stackoverflow.com/questions/20741754/python-2-unicode-compatible-error --- db_email_backend/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db_email_backend/models.py b/db_email_backend/models.py index dfa5e85..d42e27b 100644 --- a/db_email_backend/models.py +++ b/db_email_backend/models.py @@ -2,8 +2,7 @@ from __future__ import unicode_literals from django.db import models -from django.utils.encoding import python_2_unicode_compatible - +from django.utils.six import python_2_unicode_compatible @python_2_unicode_compatible class Email(models.Model):