This commit is contained in:
Joshua Rubingh 2020-05-25 13:24:44 +02:00
parent 9d4f8df207
commit 8d479aa6b3
1 changed files with 3 additions and 3 deletions

View File

@ -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)
return '{} ({})'.format(self.user.get_full_name(), self.hospital)