inversao_dia_cardapio
admin
models
- class InversaoCardapio(*args, **kwargs)[source]
Bases:
ExportModelOperationsMixin('inversao_cardapio'),CriadoEm,CriadoPor,TemObservacao,Motivo,TemChaveExterna,TemIdentificadorExternoAmigavel,FluxoAprovacaoPartindoDaEscola,TemPrioridade,Logs,SolicitacaoForaDoPrazo,TemTerceirizadaConferiuGestaoAlimentacaoTroca um cardápio de um dia por outro.
servir o cardápio do dia 30 no dia 15, automaticamente o cardápio do dia 15 será servido no dia 30
- DESCRICAO = 'Inversão de Cardápio'
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- alunos_da_cemei
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- alunos_da_cemei_2
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- cardapio_de
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.
- cardapio_de_id
- cardapio_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.parentis aForwardManyToOneDescriptorinstance.
- cardapio_para_id
- 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
- property data_de
- data_de_inversao
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- data_de_inversao_2
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property data_para
- data_para_inversao
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- data_para_inversao_2
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property datas
- desta_semana = <sme_sigpae_api.cardapio.inversao_dia_cardapio.managers.inversao_dia_cardapio_managers.InversaoCardapioDestaSemanaManager object>
- deste_mes = <sme_sigpae_api.cardapio.inversao_dia_cardapio.managers.inversao_dia_cardapio_managers.InversaoCardapioDesteMesManager 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.
- 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_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.
- inicia_fluxo
NoOp function, ignores all arguments.
- motivo
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- 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>
- 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
- tipos_alimentacao
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.
- vencidos = <sme_sigpae_api.cardapio.inversao_dia_cardapio.managers.inversao_dia_cardapio_managers.InversaoCardapioVencidaManager object>
api
api/serializers
api/serializers_create
- class InversaoCardapioSerializerCreate(*args, **kwargs)[source]
Bases:
ModelSerializer- class Meta[source]
Bases:
object- fields = ('uuid', 'motivo', 'observacao', 'data_de', 'data_para', 'tipos_alimentacao', 'data_de_2', 'data_para_2', 'escola', 'status_explicacao', 'alunos_da_cemei', 'alunos_da_cemei_2')
- model
alias of
InversaoCardapio
- 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/validators
api/viewsets
- class InversaoCardapioViewSet(**kwargs)[source]
Bases:
DataSolicitacaoContextMixin,ModelViewSet- get_permissions()[source]
Instantiates and returns the list of permissions that this view requires.
- 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)
- lookup_field = 'uuid'
- permission_classes = (<class 'rest_framework.permissions.IsAuthenticated'>,)
- queryset = <QuerySet [<InversaoCardapio: Inversão de Cardápio De: 2022-12-09 Para: 2022-12-16>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-10 Para: 2022-10-21>, <InversaoCardapio: Inversão de Cardápio De: 2022-11-30 Para: 2022-12-01>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-14>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-27>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-27>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-18>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-27>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-27>, <InversaoCardapio: Inversão de Cardápio De: 2022-12-07 Para: 2022-12-16>, <InversaoCardapio: Inversão de Cardápio De: 2022-12-07 Para: 2022-12-09>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-07 Para: 2022-10-10>, <InversaoCardapio: Inversão de Cardápio De: 2022-12-09 Para: 2022-12-16>, <InversaoCardapio: Inversão de Cardápio De: 2022-12-09 Para: 2022-12-16>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-07 Para: 2022-10-10>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-13>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-13>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-10 Para: 2022-10-27>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-11 Para: 2022-10-13>, <InversaoCardapio: Inversão de Cardápio De: 2022-10-10 Para: 2022-10-27>, '...(remaining elements truncated)...']>
- serializer_class
alias of
InversaoCardapioSerializer
fixtures
fixtures/factories
- class InversaoCardapioFactory(**kwargs)[source]
Bases:
DjangoModelFactory- escola = <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>
- tipos_alimentacao = <factory.declarations.PostGeneration object>