Skip to content
Snippets Groups Projects
Commit c5a587a3 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Perform specific on the QS not the object

parent 9c698a26
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment