:py:mod:`oioioi.problems.serializers` ===================================== .. py:module:: oioioi.problems.serializers Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.problems.serializers.PackageSerializer oioioi.problems.serializers.PackageUploadSerializer oioioi.problems.serializers.PackageReuploadSerializer .. py:class:: PackageSerializer(instance=None, data=empty, **kwargs) Bases: :py:obj:`rest_framework.serializers.Serializer` The BaseSerializer class provides a minimal class which may be used for writing custom serializer implementations. Note that we strongly restrict the ordering of operations/properties that may be used on the serializer in order to enforce correct usage. In particular, if a `data=` argument is passed then: .is_valid() - Available. .initial_data - Available. .validated_data - Only available after calling `is_valid()` .errors - Only available after calling `is_valid()` .data - Only available after calling `is_valid()` If a `data=` argument is not passed then: .is_valid() - Not available. .initial_data - Not available. .validated_data - Not available. .errors - Not available. .data - Available. .. py:attribute:: package_file .. py:class:: PackageUploadSerializer(instance=None, data=empty, **kwargs) Bases: :py:obj:`PackageSerializer` The BaseSerializer class provides a minimal class which may be used for writing custom serializer implementations. Note that we strongly restrict the ordering of operations/properties that may be used on the serializer in order to enforce correct usage. In particular, if a `data=` argument is passed then: .is_valid() - Available. .initial_data - Available. .validated_data - Only available after calling `is_valid()` .errors - Only available after calling `is_valid()` .data - Only available after calling `is_valid()` If a `data=` argument is not passed then: .is_valid() - Not available. .initial_data - Not available. .validated_data - Not available. .errors - Not available. .data - Available. .. py:attribute:: contest_id .. py:attribute:: round_name .. py:class:: PackageReuploadSerializer(instance=None, data=empty, **kwargs) Bases: :py:obj:`PackageSerializer` The BaseSerializer class provides a minimal class which may be used for writing custom serializer implementations. Note that we strongly restrict the ordering of operations/properties that may be used on the serializer in order to enforce correct usage. In particular, if a `data=` argument is passed then: .is_valid() - Available. .initial_data - Available. .validated_data - Only available after calling `is_valid()` .errors - Only available after calling `is_valid()` .data - Only available after calling `is_valid()` If a `data=` argument is not passed then: .is_valid() - Not available. .initial_data - Not available. .validated_data - Not available. .errors - Not available. .data - Available. .. py:attribute:: problem_id