Associate users with their invites
This commit is contained in:
parent
ec8eb01a0f
commit
634509a7f3
3 changed files with 23 additions and 0 deletions
|
@ -108,6 +108,7 @@ class Register(View):
|
|||
)
|
||||
if invite:
|
||||
invite.times_used += 1
|
||||
invite.invitees.add(user)
|
||||
invite.save()
|
||||
|
||||
login(request, user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue