Commit 5bb21328 authored by Tudor Varan's avatar Tudor Varan

Hide inactive jobs from dashboard

parent cad7f926
......@@ -659,7 +659,7 @@ def render_profile(request, username, page, rendered_subpage):
}
content_context[page] = True
print(content_context)
#print(content_context)
context = {
'menu': get_menu(request),
'content': content.render(content_context, request)
......@@ -683,7 +683,7 @@ def profile_dashboard(request, username):
for interest in profile.interests.all():
jobs_list += Job.objects.filter(category=interest)
jobs_list = [job for job in jobs_list if job.user.id != request.user.id]
jobs_list = [job for job in jobs_list if job.user.id != request.user.id and job.is_available is True]
jobs_list.sort(key=id, reverse=True)
jobs_page = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment