From 46674df341f779213a2e5d6369828af1cafab3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Fri, 16 Sep 2022 09:11:31 -0300 Subject: [PATCH] Ajusta nomes de imports para evitar conflitos --- sigi/apps/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigi/apps/utils/__init__.py b/sigi/apps/utils/__init__.py index 21f28cf..2fa9cab 100644 --- a/sigi/apps/utils/__init__.py +++ b/sigi/apps/utils/__init__.py @@ -1,5 +1,5 @@ from unicodedata import normalize -from django.contrib import admin +from django.contrib import admin as django_admin from django.core.exceptions import FieldDoesNotExist from django.db import models from django.template.loader import render_to_string @@ -43,7 +43,7 @@ def queryset_ascii(self, request): if "q" in request.GET: request.GET._mutable = True request.GET["q"] = to_ascii(request.GET["q"]) - return admin.ModelAdmin.get_queryset(self, request) + return django_admin.ModelAdmin.get_queryset(self, request) def field_label(name, model):