Modèle EmployeProfile¶
Modèle de profil employé.
Ce module définit le profil employé qui étend les informations de base de l’utilisateur avec des données spécifiques aux employés.
- class users.models.employe.EmployeProfile(*args, **kwargs)¶
Bases :
ModelProfil employé lié à un utilisateur.
Étend les informations de base d’un utilisateur avec des données spécifiques aux employés : nom, prénom, matricule et identifiant téléphonique professionnel.
- Variables:
user (User) – Relation one-to-one avec l’utilisateur de base
nom (str) – Nom de famille de l’employé
prenom (str) – Prénom de l’employé
matricule (str) – Numéro de matricule unique de l’employé
identifiant_telephone (str) – Identifiant téléphonique professionnel
- user¶
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.placeis aForwardOneToOneDescriptorinstance.
- nom¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prenom¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- matricule¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- identifiant_telephone¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases :
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases :
MultipleObjectsReturned
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- user_id¶