Docu
This commit is contained in:
parent
9d4f8df207
commit
8d479aa6b3
|
@ -14,8 +14,8 @@ class Employee(MetaDataModel):
|
||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
----------
|
----------
|
||||||
user : User
|
user : :class:`~django.contrib.auth.models.User`
|
||||||
The Django user in the system where this employee data belongs to.
|
The Django User model that is the employee.
|
||||||
hospital : Hospital
|
hospital : Hospital
|
||||||
The hospital where this employee is working. You can only choose **one** hospital per employee.
|
The hospital where this employee is working. You can only choose **one** hospital per employee.
|
||||||
polyclinic : Polyclinic
|
polyclinic : Polyclinic
|
||||||
|
@ -37,4 +37,4 @@ class Employee(MetaDataModel):
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
"""str: Returns a readable name for the employee. Format is [employee_full_name] ([city])."""
|
"""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