1👍
✅
You can check if the user is contained within the job’s applicants.
Assuming job.get_applicants
returns a queryset (or any iterable) of User
objects, you can use the in
operator:
{% if request.user in job.get_applicants %}
👤aumo
Source:stackexchange.com