loefsys.users.models.name_mixin module
Module containing a utility mixin for handling names of persons.
- class loefsys.users.models.name_mixin.NameMixin(*args, **kwargs)
Bases:
Model
A mixin for dealing with names.
- display_name_preference
The person’s preference for having their name displayed.
- Type:
DisplayNamePreference
- first_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- last_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- initials
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- nickname
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- display_name_preference
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- display_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_display_name_preference_display(*, field=<django.db.models.fields.PositiveSmallIntegerField: display_name_preference>)