Skip to content

Commit

Permalink
Merge pull request #202 from EarthSchlange/remove_non_paying_members_…
Browse files Browse the repository at this point in the history
…in_beta

Exclude Non-Paying Members - Resolves #66.
  • Loading branch information
Michael Hiiva authored Jun 26, 2021
2 parents a894e97 + 1bdb0b0 commit a0af5bf
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 a0af5bf

Please sign in to comment.