|
|
@ -359,7 +359,7 @@ class Project(models.Model): |
|
|
|
return False |
|
|
|
|
|
|
|
role = Member.Role.REGULAR if rw else Member.Role.READONLY |
|
|
|
Member.objects.create(user=user, project=self, rw=rw, role=role) |
|
|
|
Member.objects.create(user=user, project=self, role=role) |
|
|
|
checks_url = reverse("hc-checks", args=[self.code]) |
|
|
|
user.profile.send_instant_login_link(self, redirect_url=checks_url) |
|
|
|
return True |
|
|
@ -427,7 +427,6 @@ class Member(models.Model): |
|
|
|
user = models.ForeignKey(User, models.CASCADE, related_name="memberships") |
|
|
|
project = models.ForeignKey(Project, models.CASCADE) |
|
|
|
transfer_request_date = models.DateTimeField(null=True, blank=True) |
|
|
|
rw = models.BooleanField(default=True, null=True) |
|
|
|
role = models.CharField(max_length=1, default=Role.REGULAR, choices=Role.choices) |
|
|
|
|
|
|
|
class Meta: |
|
|
|