1
I assume you already had an object for company
in current page, getting the employees is really easy:
employees = Employee.objects.filter(company=company)
for employee in employees:
print employee.employeeprofile.first_name
print employee.employeeprofile.last_name
print employee.employeejob.employment_status
print employee.employeejob.employee_type
Django doc about OneToOneField.
0
do you have a views.py which serves these models? you could easily use the django render function to serve all three of these models to the dom. this is a rather comprehensive, all encompassing process but I’d be more than happy to assist you
Source:stackexchange.com