alteracao_tipo_alimentacao_cemei
admin
models
- class AlteracaoCardapioCEMEI(id, criado_em, uuid, criado_por, observacao, foi_solicitado_fora_do_prazo, terceirizada_conferiu_gestao, status, rastro_escola, rastro_dre, rastro_lote, rastro_terceirizada, escola, motivo, alunos_cei_e_ou_emei, alterar_dia, data_inicial, data_final)[source]
Bases:
CriadoEm,CriadoPor,TemChaveExterna,TemObservacao,FluxoAprovacaoPartindoDaEscola,TemIdentificadorExternoAmigavel,Logs,TemPrioridade,SolicitacaoForaDoPrazo,EhAlteracaoCardapio,TemTerceirizadaConferiuGestaoAlimentacao- CEI = 'CEI'
- DESCRICAO = 'Alteração do Tipo de Alimentação CEMEI'
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- EMEI = 'EMEI'
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- STATUS_CHOICES = (('TODOS', 'Todos'), ('CEI', 'CEI'), ('EMEI', 'EMEI'))
- TODOS = 'TODOS'
- alterar_dia
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- alunos_cei_e_ou_emei
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- codae_autoriza
NoOp function, ignores all arguments.
- codae_autoriza_questionamento
NoOp function, ignores all arguments.
- codae_nega
NoOp function, ignores all arguments.
- codae_nega_questionamento
NoOp function, ignores all arguments.
- codae_questiona
NoOp function, ignores all arguments.
- criado_em
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- criado_por
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- criado_por_id
- property data
- data_final
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- data_inicial
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property datas
- datas_intervalo
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- desta_semana = <sme_sigpae_api.cardapio.alteracao_tipo_alimentacao_cemei.managers.alteracao_tipo_alimentacao_cemei_managers.AlteracoesCardapioCEMEIDestaSemanaManager object>
- deste_mes = <sme_sigpae_api.cardapio.alteracao_tipo_alimentacao_cemei.managers.alteracao_tipo_alimentacao_cemei_managers.AlteracoesCardapioCEMEIDesteMesManager object>
- dre_nao_valida
NoOp function, ignores all arguments.
- dre_pede_revisao
NoOp function, ignores all arguments.
- dre_valida
NoOp function, ignores all arguments.
- escola
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- escola_id
- escola_revisa
NoOp function, ignores all arguments.
- property existe_dia_cancelado
- foi_solicitado_fora_do_prazo
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_alunos_cei_e_ou_emei_display(*, field=<django.db.models.fields.CharField: alunos_cei_e_ou_emei>)
- get_next_by_criado_em(*, field=<django.db.models.fields.DateTimeField: criado_em>, is_next=True, **kwargs)
- get_previous_by_criado_em(*, field=<django.db.models.fields.DateTimeField: criado_em>, is_next=False, **kwargs)
- get_status_display(*, field=<django_xworkflows.models.StateField: status>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property inclusoes
- inicia_fluxo
NoOp function, ignores all arguments.
- motivo
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- motivo_id
- property numero_alunos
- objects = <django.db.models.manager.Manager object>
- observacao
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property path
- rastro_dre
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- rastro_dre_id
- rastro_escola
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- rastro_escola_id
- rastro_lote
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- rastro_lote_id
- rastro_terceirizada
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- rastro_terceirizada_id
- status = <sme_sigpae_api.dados_comuns.fluxo_status.PedidoAPartirDaEscolaWorkflow object>
- substituicoes_cemei_cei_periodo_escolar
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- substituicoes_cemei_emei_periodo_escolar
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- terceirizada_conferiu_gestao
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- terceirizada_responde_questionamento
NoOp function, ignores all arguments.
- terceirizada_toma_ciencia
NoOp function, ignores all arguments.
- property tipo
- uuid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class DataIntervaloAlteracaoCardapioCEMEI(id, criado_em, data, uuid, cancelado, cancelado_justificativa, cancelado_em, cancelado_por, alteracao_cardapio_cemei)[source]
Bases:
CanceladoIndividualmente,CriadoEm,TemData,TemChaveExterna,TemIdentificadorExternoAmigavel- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- alteracao_cardapio_cemei
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- alteracao_cardapio_cemei_id
- cancelado
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- cancelado_em
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- cancelado_justificativa
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- cancelado_por
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- cancelado_por_id
- criado_em
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_next_by_criado_em(*, field=<django.db.models.fields.DateTimeField: criado_em>, is_next=True, **kwargs)
- get_next_by_data(*, field=<django.db.models.fields.DateField: data>, is_next=True, **kwargs)
- get_previous_by_criado_em(*, field=<django.db.models.fields.DateTimeField: criado_em>, is_next=False, **kwargs)
- get_previous_by_data(*, field=<django.db.models.fields.DateField: data>, is_next=False, **kwargs)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- uuid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class FaixaEtariaSubstituicaoAlimentacaoCEMEICEI(id, uuid, faixa_etaria, quantidade, matriculados_quando_criado, substituicao_alimentacao)[source]
Bases:
TemChaveExterna,TemFaixaEtariaEQuantidade,MatriculadosQuandoCriado- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- faixa_etaria
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- faixa_etaria_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- matriculados_quando_criado
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- quantidade
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- substituicao_alimentacao
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- substituicao_alimentacao_id
- uuid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class SubstituicaoAlimentacaoNoPeriodoEscolarCEMEICEI(id, uuid, alteracao_cardapio, periodo_escolar)[source]
Bases:
TemChaveExterna- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- alteracao_cardapio
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- alteracao_cardapio_id
- faixas_etarias
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- periodo_escolar
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- periodo_escolar_id
- tipos_alimentacao_de
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- tipos_alimentacao_para
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- uuid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class SubstituicaoAlimentacaoNoPeriodoEscolarCEMEIEMEI(id, uuid, matriculados_quando_criado, alteracao_cardapio, qtd_alunos, periodo_escolar)[source]
Bases:
TemChaveExterna,MatriculadosQuandoCriado- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- alteracao_cardapio
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- alteracao_cardapio_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- matriculados_quando_criado
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- periodo_escolar
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- periodo_escolar_id
- qtd_alunos
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- tipos_alimentacao_de
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- tipos_alimentacao_para
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- uuid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
api
api/serializers
- class AlteracaoCardapioCEMEISerializer(*args, **kwargs)[source]
Bases:
ModelSerializer- class Meta[source]
Bases:
object- exclude = ('id',)
- model
alias of
AlteracaoCardapioCEMEI
- class FaixaEtariaSubstituicaoAlimentacaoCEMEICEISerializer(*args, **kwargs)[source]
Bases:
ModelSerializer
api/serializers_create
- class AlteracaoCardapioCEMEISerializerCreate(*args, **kwargs)[source]
Bases:
ModelSerializer- class Meta[source]
Bases:
object- exclude = ('id',)
- model
alias of
AlteracaoCardapioCEMEI
- create(validated_data)[source]
We have a bit of extra checking around this in order to provide descriptive messages when something goes wrong, but this method is essentially just:
return ExampleModel.objects.create(**validated_data)
If there are many to many fields present on the instance then they cannot be set until the model is instantiated, in which case the implementation is like so:
example_relationship = validated_data.pop(‘example_relationship’) instance = ExampleModel.objects.create(**validated_data) instance.example_relationship = example_relationship return instance
The default implementation also does not handle nested relationships. If you want to support writable nested relationships you’ll need to write an explicit .create() method.
- class DatasIntervaloAlteracaoCardapioCEMEICreateSerializer(*args, **kwargs)[source]
Bases:
ModelSerializer- class Meta[source]
Bases:
object- exclude = ('id',)
- model
alias of
DataIntervaloAlteracaoCardapioCEMEI
- create(validated_data)[source]
We have a bit of extra checking around this in order to provide descriptive messages when something goes wrong, but this method is essentially just:
return ExampleModel.objects.create(**validated_data)
If there are many to many fields present on the instance then they cannot be set until the model is instantiated, in which case the implementation is like so:
example_relationship = validated_data.pop(‘example_relationship’) instance = ExampleModel.objects.create(**validated_data) instance.example_relationship = example_relationship return instance
The default implementation also does not handle nested relationships. If you want to support writable nested relationships you’ll need to write an explicit .create() method.
- class FaixaEtariaSubstituicaoAlimentacaoCEMEICEICreateSerializer(*args, **kwargs)[source]
Bases:
ModelSerializer
api/viewsets
- class AlteracoesCardapioCEMEIViewSet(**kwargs)[source]
Bases:
AlteracoesCardapioViewSet,EscolaIniciaCancela,DREValida,CodaeAutoriza,CodaeQuestionaTerceirizadaResponde,TerceirizadaTomaCienciaModelo responsável pelas Solicitações de Alterações do Tipo de Alimentação para Escolas CEMEI e CEU CEMEI.
- get_queryset()[source]
Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
fixtures
fixtures/factories
- class AlteracaoCardapioCEMEIFactory(**kwargs)[source]
Bases:
DjangoModelFactory- escola = <factory.declarations.SubFactory object>
- motivo = <factory.declarations.SubFactory object>
- rastro_dre = <factory.declarations.SubFactory object>
- rastro_escola = <factory.declarations.SubFactory object>
- rastro_lote = <factory.declarations.SubFactory object>
- rastro_terceirizada = <factory.declarations.SubFactory object>
- class DataIntervaloAlteracaoCardapioCEMEIFactory(**kwargs)[source]
Bases:
DjangoModelFactory- alteracao_cardapio_cemei = <factory.declarations.SubFactory object>
- class FaixaEtariaSubstituicaoAlimentacaoCEMEICEIFactory(**kwargs)[source]
Bases:
DjangoModelFactory- faixa_etaria = <factory.declarations.SubFactory object>
- substituicao_alimentacao = <factory.declarations.SubFactory object>
- class SubstituicaoAlimentacaoNoPeriodoEscolarCEMEICEIFactory(**kwargs)[source]
Bases:
DjangoModelFactory- alteracao_cardapio = <factory.declarations.SubFactory object>
- periodo_escolar = <factory.declarations.SubFactory object>
- tipos_alimentacao_de = <factory.declarations.PostGeneration object>
- tipos_alimentacao_para = <factory.declarations.PostGeneration object>
- class SubstituicaoAlimentacaoNoPeriodoEscolarCEMEIEMEIFactory(**kwargs)[source]
Bases:
DjangoModelFactory- alteracao_cardapio = <factory.declarations.SubFactory object>
- periodo_escolar = <factory.declarations.SubFactory object>
- tipos_alimentacao_de = <factory.declarations.PostGeneration object>
- tipos_alimentacao_para = <factory.declarations.PostGeneration object>