Browse Source

When an invited user logs in, redirect them to the new project

pull/366/head
Pēteris Caune 5 years ago
parent
commit
7994259003
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      hc/accounts/models.py

+ 2
- 1
hc/accounts/models.py View File

@ -282,7 +282,8 @@ class Project(models.Model):
def invite(self, user):
Member.objects.create(user=user, project=self)
user.profile.send_instant_login_link(self)
checks_url = reverse("hc-checks", args=[self.code])
user.profile.send_instant_login_link(self, redirect_url=checks_url)
def set_next_nag_date(self):
""" Set next_nag_date on profiles of all members of this project. """


Loading…
Cancel
Save