From 497c2ba599c922b5904209a54fd4f6c22563cc92 Mon Sep 17 00:00:00 2001 From: Sesostris Vieira Date: Wed, 14 Oct 2015 20:09:30 -0300 Subject: [PATCH] Add fileds in Eventos ModelForm to prevent deprecation alert --- sigi/apps/eventos/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sigi/apps/eventos/admin.py b/sigi/apps/eventos/admin.py index 711bdf4..7bb634b 100644 --- a/sigi/apps/eventos/admin.py +++ b/sigi/apps/eventos/admin.py @@ -27,6 +27,10 @@ from sigi.apps.eventos.models import TipoEvento, Funcao, Evento, Equipe, Convite class EventoAdminForm(forms.ModelForm): class Meta: model = Evento + fields = ('tipo_evento', 'nome', 'descricao', 'solicitante', 'data_inicio', 'data_termino', + 'casa_anfitria', 'municipio', 'local', 'publico_alvo', 'status', + 'data_cancelamento', 'motivo_cancelamento', 'curso_moodle_id', + ) def clean(self): cleaned_data = super(EventoAdminForm, self).clean() data_inicio = cleaned_data.get("data_inicio")