oioioi.participants.fields
¶
Module Contents¶
Classes¶
A OneToOneField is essentially the same as a ForeignKey, with the exception |
Functions¶
|
- class oioioi.participants.fields.OneToOneBothHandsCascadingParticipantField(to, on_delete, to_field=None, **kwargs)[source]¶
Bases:
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.