diff --git a/opentech/apply/home/models.py b/opentech/apply/home/models.py index 3d135ce17c5e27c54899b3753c19ed77d2aa9dc8..6b1489d1d539c900ac0d8789a38cbb5444ed4c2e 100644 --- a/opentech/apply/home/models.py +++ b/opentech/apply/home/models.py @@ -24,6 +24,6 @@ class ApplyHomePage(Page): def get_context(self, *args, **kwargs): context = super().get_context(*args, **kwargs) - context['open_funds'] = ApplicationBase.objects.order_by_end_date() - context['open_labs'] = LabBase.objects.public().live() + context['open_funds'] = ApplicationBase.objects.order_by_end_date().specific() + context['open_labs'] = LabBase.objects.public().live().specific() return context diff --git a/opentech/apply/home/templates/apply_home/apply_home_page.html b/opentech/apply/home/templates/apply_home/apply_home_page.html index 041adf22b6bcfff0b11fd23f667749cc1e4fd316..ac43d0e342d3461dc62055bb5826ab75d8f12f55 100644 --- a/opentech/apply/home/templates/apply_home/apply_home_page.html +++ b/opentech/apply/home/templates/apply_home/apply_home_page.html @@ -17,10 +17,10 @@ <div class="wrapper wrapper--listings"> {% for fund in open_funds %} - {% include "apply_home/includes/apply_listing.html" with page=fund.specific %} + {% include "apply_home/includes/apply_listing.html" with page=fund %} {% endfor %} {% for lab in open_labs %} - {% include "apply_home/includes/apply_listing.html" with page=lab.specific %} + {% include "apply_home/includes/apply_listing.html" with page=lab %} {% endfor %} </div>