Skip to content

Commit

Permalink
used user.profile.is_active for active test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed Aug 8, 2017
1 parent bc8d407 commit 5e28a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tablet/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def user_profile(request, username):

# Pull our open alerts
alert_list = [MemberAlert.MEMBER_AGREEMENT, MemberAlert.TAKE_PHOTO, MemberAlert.ORIENTATION, MemberAlert.KEY_AGREEMENT, MemberAlert.ASSIGN_CABINET, MemberAlert.ASSIGN_MAILBOX, MemberAlert.RETURN_DOOR_KEY, MemberAlert.RETURN_DESK_KEY]
if user.membership.active_subscriptions():
if user.profile.is_active():
open_alerts = user.profile.open_alerts().filter(key__in=alert_list)
else:
open_alerts = None
Expand Down

0 comments on commit 5e28a84

Please sign in to comment.