From 99baae7d3f0af5c35c80e16b295aaa83a4e0f9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Wed, 28 Jun 2023 16:18:44 -0300 Subject: [PATCH] =?UTF-8?q?Busca=20de=20eventos=20por=20n=C3=BAmero=20do?= =?UTF-8?q?=20processo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/eventos/admin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sigi/apps/eventos/admin.py b/sigi/apps/eventos/admin.py index 19afaf4..faf03dd 100644 --- a/sigi/apps/eventos/admin.py +++ b/sigi/apps/eventos/admin.py @@ -187,6 +187,7 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin): "casa_anfitria__search_text", "municipio__search_text", "solicitante", + "num_processo", ) inlines = ( EquipeInline, @@ -488,7 +489,7 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin): inicio = int(time.mktime(evento.data_inicio.astimezone().timetuple())) fim = int(time.mktime(evento.data_termino.astimezone().timetuple())) erros = [] - try: + try: # Criar novo curso a partir do template novo_curso = mws.core.course.duplicate_course( evento.tipo_evento.moodle_template_courseid, fullname=fullname, @@ -508,7 +509,7 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin): level=messages.ERROR, ) return redirect(change_url) - try: + try: # Atualiza configuraĆ§Ć£o do curso changes = { "id": novo_curso.id, "summary": evento.descricao, @@ -524,7 +525,7 @@ class EventoAdmin(CartExportMixin, admin.ModelAdmin): f"{e.message}" ) ) - try: + try: # Matricular professores/membros membros = evento.equipe_set.exclude( membro__moodle_userid=None ).exclude(funcao__moodle_roleid=None)