AKPreference.models module
- class AKPreference.models.EventParticipant(*args, **kwargs)[source]
Bases:
ModelDatabase table:
AKPreference_eventparticipantA participant describes a person taking part in an event.
- Parameters:
Relationship fields:
- Parameters:
event (
ForeignKeytoEvent) – Event. Associated event (related name:eventparticipant)requirements (
ManyToManyFieldtoAKRequirement) – Requirements. Participant’s Requirements (related name:eventparticipant)
Reverse relationships:
- Parameters:
availabilities (Reverse
ForeignKeyfromAvailability) – All availabilities of this Participant (related name ofparticipant)akpreference (Reverse
ForeignKeyfromAKPreference) – All AK Preferences of this Participant (related name ofparticipant)
- property export_preferences
Preferences of this participant with positive score.
- class AKPreference.models.AKPreference(*args, **kwargs)[source]
Bases:
ModelDatabase table:
AKPreference_akpreferenceModel representing the preference of a participant to an AK.
- Parameters:
id (AutoField) – Primary key: ID
preference (PositiveSmallIntegerField) – Preference. Preference level for the AK
timestamp (DateTimeField) – Timestamp. Time of creation
Relationship fields:
- Parameters:
event (
ForeignKeytoEvent) – Event. Associated event (related name:akpreference)participant (
ForeignKeytoEventParticipant) – Participant. Participant this preference belongs to (related name:akpreference)ak (
ForeignKeytoAK) – AK. AK this preference belongs to (related name:akpreference)