|
@ -1,6 +1,6 @@ |
|
|
|
|
|
import sys |
|
|
from collections import OrderedDict |
|
|
from collections import OrderedDict |
|
|
from datetime import datetime, timedelta |
|
|
from datetime import datetime, timedelta |
|
|
import sys |
|
|
|
|
|
|
|
|
|
|
|
from braces.views import FormMessagesMixin |
|
|
from braces.views import FormMessagesMixin |
|
|
from django import forms |
|
|
from django import forms |
|
@ -21,15 +21,14 @@ from django.views.generic.edit import CreateView, DeleteView, UpdateView |
|
|
from django.views.generic.list import ListView |
|
|
from django.views.generic.list import ListView |
|
|
|
|
|
|
|
|
from compilacao import utils |
|
|
from compilacao import utils |
|
|
from compilacao.forms import NotaForm, TaForm, TipoTaForm, VideForm,\ |
|
|
from compilacao.forms import (NotaForm, PublicacaoForm, TaForm, TipoTaForm, |
|
|
PublicacaoForm |
|
|
VideForm) |
|
|
from compilacao.models import (Dispositivo, Nota, |
|
|
from compilacao.models import (Dispositivo, Nota, |
|
|
PerfilEstruturalTextoArticulado, |
|
|
PerfilEstruturalTextoArticulado, Publicacao, |
|
|
TextoArticulado, TipoDispositivo, TipoNota, |
|
|
TextoArticulado, TipoDispositivo, TipoNota, |
|
|
TipoPublicacao, TipoTextoArticulado, TipoVide, |
|
|
TipoPublicacao, TipoTextoArticulado, TipoVide, |
|
|
VeiculoPublicacao, Vide, Publicacao) |
|
|
VeiculoPublicacao, Vide) |
|
|
from compilacao.utils import build_crud, NO_ENTRIES_MSG |
|
|
from compilacao.utils import NO_ENTRIES_MSG, build_crud |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DISPOSITIVO_SELECT_RELATED = ( |
|
|
DISPOSITIVO_SELECT_RELATED = ( |
|
|
'tipo_dispositivo', |
|
|
'tipo_dispositivo', |
|
|