AKModel.availability.serializers module

class AKModel.availability.serializers.AvailabilitySerializer(*args, **kwargs)[source]

Bases: ModelSerializer

REST Framework Serializer for Availability

get_allDay(obj)[source]

Bridge between naming conventions of python and fullcalendar by providing the all_day field as allDay, too

get_start(obj)[source]

Get start timestamp

Use already localized strings in serialized field (default would be UTC, but that would require heavy timezone calculation on client side)

get_end(obj)[source]

Get end timestamp

Use already localized strings in serialized field (default would be UTC, but that would require heavy timezone calculation on client side)