:py:mod:`oioioi.participants.fields` ==================================== .. py:module:: oioioi.participants.fields Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.participants.fields.OneToOneBothHandsCascadingParticipantField Functions ~~~~~~~~~ .. autoapisummary:: oioioi.participants.fields.delete_related_participants_handler .. py:function:: delete_related_participants_handler(sender, instance, **kwargs) .. py:class:: OneToOneBothHandsCascadingParticipantField(to, on_delete, to_field=None, **kwargs) Bases: :py:obj:`django.db.models.OneToOneField` A OneToOneField is essentially the same as a ForeignKey, with the exception that it always carries a "unique" constraint with it and the reverse relation always returns the object pointed to (since there will only ever be one), rather than returning a list. .. py:method:: contribute_to_class(cls, name) Register the field with the model class it belongs to. If private_only is True, create a separate instance of this field for every subclass of cls, even if cls is not an abstract model.