Browse Source

Merge branch 'master' of github.com:interlegis/sapl

pull/663/head
Eduardo Calil 8 years ago
parent
commit
b643bdf361
  1. 5
      sapl/materia/views.py

5
sapl/materia/views.py

@ -525,6 +525,11 @@ class ProposicaoCrud(Crud):
id=self.kwargs['pk'],
autor__user_id=self.request.user.id).exists())
def get_context_data(self, **kwargs):
context = CrudDetailView.get_context_data(self, **kwargs)
context['subnav_template_name'] = ''
return context
class ListView(PermissionRequiredMixin, CrudListView):
ordering = ['-data_envio', 'descricao']
permission_required = permissoes_autor()

Loading…
Cancel
Save