Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmwatson committed Mar 19, 2024
1 parent 6a27a46 commit e74f641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion budgetportal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def department_page(

context["public_entities"] = []

for public_entity in PublicEntity.objects.filter(department__slug=department_slug):
for public_entity in PublicEntity.objects.filter(department__slug=department_slug, government=department.government):
context["public_entities"].append(
{
"name": public_entity.name,
Expand All @@ -523,6 +523,7 @@ def department_page(
def public_entity_page(
request, financial_year_id, sphere_slug, government_slug, public_entity_slug
):
raise()
public_entity = None
selected_year = get_object_or_404(FinancialYear, slug=financial_year_id)

Expand Down

0 comments on commit e74f641

Please sign in to comment.