api.v1.serializers.django_celery_beat_serializers module

Module with serializers for the django_celery_beat.models models.

class api.v1.serializers.django_celery_beat_serializers.IntervalScheduleSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

The base serializer for django_celery_beat.models.IntervalSchedule.

Includes all viable fields from the model. Sets all constraints that must be implemented in all serializers. Other serializers for django_celery_beat.models.IntervalSchedule should inherit from this.

class Meta[source]

Bases: object

Metadata class for the serializer.

Contains constraints that must be implemented by all serializers. Other serializer metaclasses should inherit from this. read_only_fields and exclude must not be shortened in subclasses.

model

The model to serialize.

alias of IntervalSchedule

fields = '__all__'

Include all fields.

_declared_fields = {}
class api.v1.serializers.django_celery_beat_serializers.PeriodicTaskSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

The base serializer for django_celery_beat.models.PeriodicTask.

Includes all viable fields from the model. Sets all constraints that must be implemented in all serializers. Other serializers for django_celery_beat.models.PeriodicTask should inherit from this.

class Meta[source]

Bases: object

Metadata class for the serializer.

Contains constraints that must be implemented by all serializers. Other serializer metaclasses should inherit from this. read_only_fields and exclude must not be shortened in subclasses.

model

The model to serialize.

alias of PeriodicTask

fields: ClassVar[list[str]] = ['enabled', 'last_run_at', 'total_run_count']

Include only the django_celery_beat.models.PeriodicTask.enabled, django_celery_beat.models.PeriodicTask.last_run_at, django_celery_beat.models.PeriodicTask.total_run_count fields.

read_only_fields: Final[list[str]] = ['enabled', 'last_run_at', 'total_run_count']

All fields are read-only

_declared_fields = {}