Docu
This commit is contained in:
parent
9d4f8df207
commit
8d479aa6b3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue