Browse Source

Ajusta nomes de imports para evitar conflitos

pull/159/head
Sesostris Vieira 2 years ago
parent
commit
46674df341
  1. 4
      sigi/apps/utils/__init__.py

4
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):

Loading…
Cancel
Save