alteracao_tipo_alimentacao_cei

admin

class AlteracaoCardapioCEIModelAdmin(model, admin_site)[source]

Bases: ModelAdmin

inlines = [<class 'sme_sigpae_api.cardapio.alteracao_tipo_alimentacao_cei.admin.SubstituicoesCEIInLine'>]
list_display = ['uuid', 'data', 'status']
list_filter = ['status']
property media
class SubstituicoesCEIInLine(parent_model, admin_site)[source]

Bases: TabularInline

extra = 1
property media
model

alias of SubstituicaoAlimentacaoNoPeriodoEscolarCEI

models

class AlteracaoCardapioCEI(id, criado_em, data, uuid, criado_por, observacao, foi_solicitado_fora_do_prazo, terceirizada_conferiu_gestao, status, rastro_escola, rastro_dre, rastro_lote, rastro_terceirizada, escola, motivo)[source]

Bases: ExportModelOperationsMixin('alteracao_cardapio_cei'), CriadoEm, CriadoPor, TemChaveExterna, TemData, TemObservacao, FluxoAprovacaoPartindoDaEscola, TemIdentificadorExternoAmigavel, Logs, TemPrioridade, SolicitacaoForaDoPrazo, EhAlteracaoCardapio, TemTerceirizadaConferiuGestaoAlimentacao

DESCRICAO = 'Alteração do Tipo de Alimentação CEI'
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

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.parent is a ForwardManyToOneDescriptor instance.

criado_por_id
data

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

desta_semana = <sme_sigpae_api.cardapio.alteracao_tipo_alimentacao_cei.managers.alteracao_tipo_alimentacao_cei_managers.AlteracoesCardapioCEIDestaSemanaManager object>
deste_mes = <sme_sigpae_api.cardapio.alteracao_tipo_alimentacao_cei.managers.alteracao_tipo_alimentacao_cei_managers.AlteracoesCardapioCEIDesteMesManager 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.parent is a ForwardManyToOneDescriptor instance.

escola_id
escola_revisa

NoOp function, ignores all arguments.

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_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)
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.

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.parent is a ForwardManyToOneDescriptor instance.

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.parent is a ForwardManyToOneDescriptor instance.

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.parent is a ForwardManyToOneDescriptor instance.

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.parent is a ForwardManyToOneDescriptor instance.

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.parent is a ForwardManyToOneDescriptor instance.

rastro_terceirizada_id
salvar_log_transicao(status_evento, usuario, **kwargs)[source]
solicitacao_dict_para_relatorio(label_data, data_log, instituicao)[source]
status = <sme_sigpae_api.dados_comuns.fluxo_status.PedidoAPartirDaEscolaWorkflow object>
property substituicoes
substituicoes_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.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

property susbstituicoes_dict
property template_mensagem
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 FaixaEtariaSubstituicaoAlimentacaoCEI(id, uuid, faixa_etaria, quantidade, matriculados_quando_criado, substituicao_alimentacao)[source]

Bases: ExportModelOperationsMixin('faixa_etaria_substituicao_alimentacao_cei'), 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.parent is a ForwardManyToOneDescriptor instance.

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.parent is a ForwardManyToOneDescriptor instance.

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 SubstituicaoAlimentacaoNoPeriodoEscolarCEI(id, uuid, alteracao_cardapio, periodo_escolar, tipo_alimentacao_para)[source]

Bases: ExportModelOperationsMixin('substituicao_cei_alimentacao_periodo_escolar'), 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.parent is a ForwardManyToOneDescriptor instance.

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.children is a ReverseManyToOneDescriptor instance.

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.parent is a ForwardManyToOneDescriptor instance.

periodo_escolar_id
tipo_alimentacao_para

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.parent is a ForwardManyToOneDescriptor instance.

tipo_alimentacao_para_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.toppings and Topping.pizzas are ManyToManyDescriptor instances.

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 AlteracaoCardapioCEISerializer(*args, **kwargs)[source]

Bases: AlteracaoCardapioSerializerBase

class Meta[source]

Bases: object

exclude = ('id',)
model

alias of AlteracaoCardapioCEI

class FaixaEtariaSubstituicaoAlimentacaoCEISerializer(*args, **kwargs)[source]

Bases: ModelSerializer

class Meta[source]

Bases: object

exclude = ('id',)
model

alias of FaixaEtariaSubstituicaoAlimentacaoCEI

class SubstituicoesAlimentacaoNoPeriodoEscolarCEISerializer(*args, **kwargs)[source]

Bases: SubstituicoesAlimentacaoNoPeriodoEscolarSerializerBase

class Meta[source]

Bases: object

exclude = ('id',)
model

alias of SubstituicaoAlimentacaoNoPeriodoEscolarCEI

to_representation(instance)[source]

Object instance -> Dict of primitive datatypes.

api/serializers_create

class AlteracaoCardapioCEISerializerCreate(*args, **kwargs)[source]

Bases: AlteracaoCardapioSerializerCreateBase

class Meta[source]

Bases: object

exclude = ('id', 'status')
model

alias of AlteracaoCardapioCEI

serializer_substituicao

alias of SubstituicoesAlimentacaoNoPeriodoEscolarCEISerializerCreate

validate_data(data)[source]
class FaixaEtariaSubstituicaoAlimentacaoCEISerializerCreate(*args, **kwargs)[source]

Bases: ModelSerializer

class Meta[source]

Bases: object

exclude = ('id',)
model

alias of FaixaEtariaSubstituicaoAlimentacaoCEI

class SubstituicoesAlimentacaoNoPeriodoEscolarCEISerializerCreate(*args, **kwargs)[source]

Bases: SubstituicoesAlimentacaoNoPeriodoEscolarSerializerCreateBase

class Meta[source]

Bases: object

exclude = ('id',)
model

alias of SubstituicaoAlimentacaoNoPeriodoEscolarCEI

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.

api/viewsets

class AlteracoesCardapioCEIViewSet(**kwargs)[source]

Bases: AlteracoesCardapioViewSet

get_serializer_class()[source]

Return the class to use for the serializer. Defaults to using self.serializer_class.

You may want to override this if you need to provide different serializations depending on the incoming request.

(Eg. admins get full serialization, others get basic serialization)

minhas_solicitacoes(request)[source]
queryset = <QuerySet [<AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-16>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-11-24>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-16>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-11-24>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-10-17>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-15>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-16>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-10-13>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-16>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-10-14>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-10-18>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-10-27>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-15>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-11-22>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-11-30>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-10-21>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-08>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-12-16>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-11-30>, <AlteracaoCardapioCEI: Alteração de cardápio CEI de 2022-11-30>, '...(remaining elements truncated)...']>
relatorio(request, uuid=None)[source]
solicitacoes_codae(request, filtro_aplicado='sem_filtro')[source]
solicitacoes_diretoria_regional(request, filtro_aplicado='sem_filtro')[source]
solicitacoes_terceirizada(request, filtro_aplicado='sem_filtro')[source]

managers

class AlteracoesCardapioCEIDestaSemanaManager(*args, **kwargs)[source]

Bases: Manager

get_queryset()[source]

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

class AlteracoesCardapioCEIDesteMesManager(*args, **kwargs)[source]

Bases: Manager

get_queryset()[source]

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.