diff --git a/jobs/views.py b/jobs/views.py index 5c24935..c03081e 100644 --- a/jobs/views.py +++ b/jobs/views.py @@ -25,6 +25,9 @@ class HomeView(ListView): context['candidates'] = Account.objects.filter(is_employee=True).count() context['resumes'] = Profile.objects.exclude(resume="").count() context['employers'] = Account.objects.filter(is_employer=True).count() + if self.request.user.is_authenticated: + context['wish_list'] = Job.objects.filter(wish_list__user_id=self.request.user.id).values_list('id', flat=True) + return context diff --git a/templates/base.html b/templates/base.html index 5f57707..76f19b8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -58,7 +58,7 @@