diff --git a/sponsors/admin.py b/sponsors/admin.py index 1deff2fc2..22326b55c 100644 --- a/sponsors/admin.py +++ b/sponsors/admin.py @@ -253,7 +253,7 @@ def get_queryset(self, *args, **kwargs): year = sponsorship.year # available_packages = SponsorshipPackage.objects.from_year(year) qs = super().get_queryset(*args, **kwargs) - filtered = qs.filter(sponsorship_benefit__packages__year=year) + filtered = qs.filter(sponsorship_benefit__year=year) return filtered.select_related("sponsorship_benefit__program", "program")