Browse Source

Correct error caused by django version upgrade in Municípios

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/6/head
Luciano Almeida 9 years ago
committed by Luciano Almeida
parent
commit
5dcb6b0fb9
  1. 3
      sigi/apps/utils/__init__.py

3
sigi/apps/utils/__init__.py

@ -3,6 +3,7 @@ from unicodedata import normalize
from django.contrib import admin from django.contrib import admin
from django.db import models from django.db import models
from django.contrib.admin import ModelAdmin
class SearchField(models.TextField): class SearchField(models.TextField):
@ -39,4 +40,4 @@ def queryset_ascii(self, request):
if 'q' in request.GET: if 'q' in request.GET:
request.GET._mutable = True request.GET._mutable = True
request.GET['q'] = to_ascii(request.GET['q']) request.GET['q'] = to_ascii(request.GET['q'])
return admin.ModelAdmin.queryset(self, request) return admin.ModelAdmin.get_queryset(self, request)

Loading…
Cancel
Save