AKPreference.models module
- class AKPreference.models.EventParticipant(*args, **kwargs)[source]
Bases:
Model
Database table:
AKPreference_eventparticipant
A participant describes a person taking part in an event.
- Parameters:
Relationship fields:
- Parameters:
event (
ForeignKey
toEvent
) – Event. Associated event (related name:eventparticipant
)requirements (
ManyToManyField
toAKRequirement
) – Requirements. Participant’s Requirements (related name:eventparticipant
)
Reverse relationships:
- Parameters:
availabilities (Reverse
ForeignKey
fromAvailability
) – All availabilities of this Participant (related name ofparticipant
)akpreference (Reverse
ForeignKey
fromAKPreference
) – 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:
Model
Database table:
AKPreference_akpreference
Model 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 (
ForeignKey
toEvent
) – Event. Associated event (related name:akpreference
)participant (
ForeignKey
toEventParticipant
) – Participant. Participant this preference belongs to (related name:akpreference
)ak (
ForeignKey
toAK
) – AK. AK this preference belongs to (related name:akpreference
)