loefsys.users.models.choices module
Module containing all choice enums for the users app.
- class loefsys.users.models.choices.Genders(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntegerChoices
Possible gender options for contacts.
- OTHER = 0
Used when other options don’t apply.
- UNSPECIFIED = 1
Used when the contact wants this information to remain private.
- MALE = 2
Used for male contacts.
- FEMALE = 3
Used for female contacts.
- class loefsys.users.models.choices.DisplayNamePreferences(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntegerChoices
Possible options for displaying a person’s name.
- FULL = 0
Used when the user wants their full name displayed.
- FULL_WITH_NICKNAME = 1
Used when the user wants their full name displayed, including nickname.
For example: “Willem-Alexander ‘Willie’ van Oranje”
- NICKNAME_LASTNAME = 2
Used for users who don’t want their complete first name displayed.
- INITIALS_LASTNAME = 3
Used for users who want their initials and last name displayed.
- FIRSTNAME_ONLY = 4
Used when the user only wants their first name displayed.
- NICKNAME_ONLY = 5
Used when the user only wants their nickname displayed.
- class loefsys.users.models.choices.MembershipTypes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntegerChoices
Possible options for membership of Loefbijter.
- ACTIVE = 0
Used when the person is an active member of Loefbijter.
- PASSIVE = 1
Used when the person is a passive member of Loefbijter.
- ACTIVE_EXCEPTIONAL = 2
Used for a person who is ‘buitengewoon lid’ and is active.
- PASSIVE_EXCEPTIONAL = 3
Used for a person who is ‘buitengewoon lid’ and is passive.
- ALUMNUS = 4
Used when the person is an alumnus.