From 4a71d3fe4b8d968b8488731ea8fcad1573a5ff7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 30 Jul 2013 14:18:33 -0300 Subject: [PATCH] =?UTF-8?q?Exclu=C3=ADda=20rotina=20para=20filtro=20inicia?= =?UTF-8?q?l=20das=20ocorr=C3=AAncias,=20que=20ficar=C3=A1=20no=20link=20d?= =?UTF-8?q?o=20treemenus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/ocorrencias/admin.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sigi/apps/ocorrencias/admin.py b/sigi/apps/ocorrencias/admin.py index 79549bb..6d9b4b9 100644 --- a/sigi/apps/ocorrencias/admin.py +++ b/sigi/apps/ocorrencias/admin.py @@ -80,15 +80,6 @@ class OcorrenciaAdmin(admin.ModelAdmin): self.fields = ('casa_legislativa', 'categoria', 'assunto', 'prioridade', 'descricao', 'resolucao', ) return super(OcorrenciaAdmin, self).get_fieldsets(request, obj) - def changelist_view(self, request, *args, **kwargs): - try: - if len(request.GET) == 0: - url = reverse('admin:%s_%s_changelist' % (self.opts.app_label, self.opts.module_name)) - return HttpResponseRedirect("%s?grupo=S&status__in=1,2" % url) - except: - pass - return super(OcorrenciaAdmin, self).changelist_view(request, *args, **kwargs) - def save_model(self, request, obj, form, change): if not change: obj.servidor_registro = Servidor.objects.get(user=request.user)