Skip to content

Commit

Permalink
Merge pull request #1543 from laws-africa/au-n1
Browse files Browse the repository at this point in the history
N+1 in au/rec
  • Loading branch information
actlikewill authored Sep 20, 2023
2 parents c83d5a2 + 03fc3cf commit 862dc59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion africanlii/views/au.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
RatificationCountry,
RegionalEconomicCommunity,
)
from peachjam.views import AuthorDetailView, PlaceDetailView
from peachjam.views import AuthorDetailView, CoreDocument, PlaceDetailView


class AfricanUnionDetailPageView(TemplateView):
Expand Down Expand Up @@ -54,6 +54,7 @@ class AfricanUnionInstitutionDetailView(AuthorDetailView):

class RegionalEconomicCommunityDetailView(PlaceDetailView):
template_name = "africanlii/regional_economic_community_detail.html"
queryset = CoreDocument.objects.prefetch_related("labels")

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
Expand Down

0 comments on commit 862dc59

Please sign in to comment.