Skip to content

Commit

Permalink
Merge pull request #350 from tannergifford/master
Browse files Browse the repository at this point in the history
Don't require user to be active in order to view the user's details and sessions.
  • Loading branch information
mik3y authored Jun 24, 2017
2 parents af62b58 + 1f0db30 commit 33258dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pykeg/web/kegweb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def system_stats(request):
### object lists and detail (generic views)

def user_detail(request, username):
user = get_object_or_404(models.User, username=username, is_active=True)
user = get_object_or_404(models.User, username=username)
stats = user.get_stats()
drinks = user.drinks.all()

Expand Down Expand Up @@ -177,7 +177,7 @@ def drink_detail(request, drink_id):


def drinker_sessions(request, username):
user = get_object_or_404(models.User, username=username, is_active=True)
user = get_object_or_404(models.User, username=username)
stats = user.get_stats()
drinks = user.drinks.all()

Expand Down

0 comments on commit 33258dd

Please sign in to comment.