To re-index the jobs:
In the interests of reuse the Recruiter and Candidate models use a contact model which is defined in the project or another app.
The contact model must be specified in
settings.CONTACT_MODEL using the
form <app name>.<contact model name> e.g:
CONTACT_MODEL = 'example_job.Contact'
The contact model must have the following fields, methods and URLs:
address_1 address_2 address_3 company_name country county # technically this is the region but called county for historical reasons dob mobile nationality position postcode town user # as defined in settings.AUTH_USER_MODEL website
full_name is_recruiter is_candidate
You must also have a
contact.detail URL which takes you to the contact
detail for the staff user e.g:
url(regex=r'^contact/(?P<pk>\d+)/$', view=ContactDetailView.as_view(), name='contact.detail' ),
check_contact function to check your model and URLs are correct
from job.tests.helper import check_contact check_contact(ContactFactory())