Skip to content

Commit

Permalink
fix team member pk casting (#5592)
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert authored and thelostone-mc committed Dec 4, 2019
1 parent ee9b9fd commit ef9f30d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/grants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,7 @@ def grant_new(request):
team_members.append(profile.id)
team_members = list(set(team_members))

for i in range(0, len(team_members)):
team_members[i] = int(team_members[i])
team_members = [int(i) for i in team_members if i != '']

grant.team_members.add(*team_members)
grant.save()
Expand Down

0 comments on commit ef9f30d

Please sign in to comment.