Skip to content

Commit

Permalink
Exclude Non-Paying Members - Resolves #66.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Jun 26, 2021
1 parent a894e97 commit 1bdb0b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions agagd/agagd_core/views/beta/players_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@

def players_profile(request, player_id):
try:
player = agagd_models.Member.objects.exclude(type="chapter").get(
member_id=player_id
player = (
agagd_models.Member.objects.exclude(status="pending")
.exclude(type="chapter")
.get(member_id=player_id)
)
except ObjectDoesNotExist:
raise Http404("Player Profile Not Found.")
Expand Down

0 comments on commit 1bdb0b0

Please sign in to comment.