[Answer]-Check multiple objects up against request.user in template django

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

Leave a comment