Skip to content

Commit

Permalink
fix link view
Browse files Browse the repository at this point in the history
  • Loading branch information
djbrown committed Feb 1, 2019
1 parent f139658 commit 5557dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def link(request):
form = LinkForm(user=request.user)
team = team_from_request_query(request.GET)

leagues = team.league.district.league_set.filter(season=team.league.season)
leagues = team.league.district.league_set.filter(season=team.league.season) if team else []

return render(request=request, template_name='users/link.html', context={
'form': form,
Expand Down

0 comments on commit 5557dba

Please sign in to comment.