Skip to content

Commit

Permalink
Updated view to show active users only
Browse files Browse the repository at this point in the history
  • Loading branch information
Fer-Bar committed May 26, 2024
1 parent 23d0063 commit 900c603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion people/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

@method_decorator(require_http_methods(["GET"]), name='dispatch')
class PersonListView(ListView):
queryset = Person.objects.filter(user__is_staff=True)
queryset = Person.objects.filter(user__is_active=True)
context_object_name = "people"
template_name = "people/members.html"

0 comments on commit 900c603

Please sign in to comment.