Browse Source

Bug no filtro por faixas

revisaoSidenav
Sesostris Vieira 3 years ago
parent
commit
04a2d8d602
  1. 2
      sigi/apps/utils/filters.py

2
sigi/apps/utils/filters.py

@ -56,7 +56,7 @@ class RangeFilter(admin.FieldListFilter):
yield (i, ultimo, value) yield (i, ultimo, value)
ultimo = value ultimo = value
yield (self.num_faixas, ultimo, tudo.last()) yield (self.num_faixas, ultimo, tudo.last()+1)
def lookups(self, request, model_admin): def lookups(self, request, model_admin):
def humanize(num): def humanize(num):

Loading…
Cancel
Save