From 7c9e0b49c54b7c23cb982b09e523ddc384c861b8 Mon Sep 17 00:00:00 2001 From: Prajal Ramjiyani Date: Wed, 7 Dec 2022 14:07:35 -0500 Subject: [PATCH] Update admin.py --- modelclone/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modelclone/admin.py b/modelclone/admin.py index 693e0d8..46ca581 100644 --- a/modelclone/admin.py +++ b/modelclone/admin.py @@ -5,10 +5,10 @@ except ImportError: # django < 1.7 from django.contrib.admin.util import unquote -from django.conf.urls import url -from django.utils.encoding import force_text -from django.utils.translation import ugettext as _ -from django.utils.translation import ugettext_lazy as lazy +from django.urls import re_path as url +from django.utils.encoding import force_str as force_text +from django.utils.translation import gettext as _ +from django.utils.translation import gettext_lazy as lazy from django.utils.html import escape from django.forms.models import model_to_dict from django.forms.formsets import all_valid