Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
621 B

from vanilla import CreateView, DeleteView, ListView, UpdateView
from django.core.urlresolvers import reverse_lazy
from django.shortcuts import render, get_object_or_404
from comissoes.models import Comissao
class ListaComissoes(ListView):
model = Comissao
context_object_name = 'comissoes'
template_name = 'comissoes/lista_comissao.html'
class CriarComissao(CreateView):
model = Comissao
success_url = reverse_lazy('ListaComissoes')
#template_name = 'comissoes/criar_comissao.html'
#fields = ['']
class DetalheComissao(ListView):
model = Comissao
context_object_name = 'comissoes'