diff --git a/comissoes/views.py b/comissoes/views.py index 74d201d3a..c530fd10b 100644 --- a/comissoes/views.py +++ b/comissoes/views.py @@ -213,7 +213,7 @@ class ComposicaoView(FormMixin, GenericView): 'composicao_id': composicao_id, 'form': form, 'pk': self.kwargs['pk'], - 'comissao': Comissao.objects.get(id=self.kwargs['pk'])}) + 'object': Comissao.objects.get(id=self.kwargs['pk'])}) def post(self, request, *args, **kwargs): form = ComposicaoForm(request.POST) @@ -228,7 +228,7 @@ class ComposicaoView(FormMixin, GenericView): 'composicao_id': int(form.data['periodo']), 'form': form, 'pk': self.kwargs['pk'], - 'comissao': Comissao.objects.get(id=self.kwargs['pk'])}) + 'object': Comissao.objects.get(id=self.kwargs['pk'])}) class MateriasView(comissao_crud.CrudDetailView): @@ -411,5 +411,5 @@ class MateriasTramitacaoListView(ListView): def get_context_data(self, **kwargs): context = super( MateriasTramitacaoListView, self).get_context_data(**kwargs) - context['comissao'] = Comissao.objects.get(id=self.kwargs['pk']) + context['object'] = Comissao.objects.get(id=self.kwargs['pk']) return context diff --git a/templates/comissoes/comissao_detail.html b/templates/comissoes/comissao_detail.html index e301b7223..084568163 100644 --- a/templates/comissoes/comissao_detail.html +++ b/templates/comissoes/comissao_detail.html @@ -1,9 +1,6 @@ {% extends "crud/detail.html" %} -{% load i18n %} +{% load menus %} + {% block sections_nav %} -