From 8d479aa6b344e1595d70ab1b45787033fc4d68da Mon Sep 17 00:00:00 2001 From: Joshua Rubingh Date: Mon, 25 May 2020 13:24:44 +0200 Subject: [PATCH] Docu --- polyclinic_scheduling/apps/employee/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polyclinic_scheduling/apps/employee/models.py b/polyclinic_scheduling/apps/employee/models.py index 5e6ee00..2e0aa0b 100644 --- a/polyclinic_scheduling/apps/employee/models.py +++ b/polyclinic_scheduling/apps/employee/models.py @@ -14,8 +14,8 @@ class Employee(MetaDataModel): Attributes ---------- - user : User - The Django user in the system where this employee data belongs to. + user : :class:`~django.contrib.auth.models.User` + The Django User model that is the employee. hospital : Hospital The hospital where this employee is working. You can only choose **one** hospital per employee. polyclinic : Polyclinic @@ -37,4 +37,4 @@ class Employee(MetaDataModel): def __str__(self): """str: Returns a readable name for the employee. Format is [employee_full_name] ([city]).""" - return '{} ({})'.format(self.user.get_full_name(), self.hospital) \ No newline at end of file + return '{} ({})'.format(self.user.get_full_name(), self.hospital)