To re-index the jobs:
To remove a candidate profile, follow the notes in this ticket: https://www.kbsoftware.co.uk/crm/ticket/4666/
Don’t forget to check the list of consents for the contact to make sure they are correct.
In the interests of reuse the
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' ),
We have a scheduled task to
This task requires:
An email template which can be initialised using
An unsubscribe template with a URL of
path( "unsubscribe/<str:token>/", view=TestUserConsentUnsubscribeUpdateView.as_view(), name="web.unsubscribe", ),
For more information on GDPR, see Unsubscribe.
To send a test email, use the
send_job_notify_email management command e.g:
django-admin.py send_job_notify_email email@example.com
This management command by-passes the selection of candidates by checking their GDPR consent and just sends an email to the specified email address.
You will need to make sure the user has given consent for Candidate Jobs Notification
check_contact function to check your model and URLs are correct
from job.tests.helper import check_contact check_contact(ContactFactory())