Skip to content

Commit

Permalink
Add another on_delete
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Oct 1, 2017
1 parent 6e11baf commit 6bf0516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/invitations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class JoinInvitation(models.Model):
message = models.TextField(null=True)
sent = models.DateTimeField(default=timezone.now)
status = models.IntegerField(choices=INVITE_STATUS_CHOICES)
signup_code = models.OneToOneField(SignupCode)
signup_code = models.OneToOneField(SignupCode, on_delete=models.CASCADE)

def to_user_email(self):
return self.signup_code.email
Expand Down

0 comments on commit 6bf0516

Please sign in to comment.