Skip to content

Commit

Permalink
Fix Home.current_residents
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Jan 5, 2024
1 parent dab55a3 commit 2b82313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def current_residents(self) -> models.QuerySet["Resident"]:
from residents.models import Resident

return Resident.objects.filter(
residency__home=self,
residency__move_out__isnull=True,
residencies__home=self,
residencies__move_out__isnull=True,
).order_by("first_name")

@property
Expand Down

0 comments on commit 2b82313

Please sign in to comment.