Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed merge fail, (re)removed dependency on email-confirmation

  • Loading branch information...
commit 75bfd1e3b6204974f38694f62e972ef045ec875c 1 parent c904bd1
@tmc tmc authored brosner committed
Showing with 0 additions and 13 deletions.
  1. +0 −13 friends/models.py
View
13 friends/models.py
@@ -208,19 +208,6 @@ class FriendshipInvitationHistory(models.Model):
sent = models.DateField(default=datetime.date.today)
status = models.CharField(max_length=1, choices=INVITE_STATUS)
-# @@@ this assumes email-confirmation is being used
-def new_user(sender, instance, **kwargs):
- if instance.verified:
- for join_invitation in JoinInvitation.objects.filter(contact__email=instance.email):
- if join_invitation.status not in ["5", "7"]: # if not accepted or already marked as joined independently
- join_invitation.status = "7"
- join_invitation.save()
- # notification will be covered below
- for contact in Contact.objects.filter(email=instance.email):
- contact.users.add(instance.user)
- # @@@ send notification
-signals.post_save.connect(new_user, sender=EmailAddress)
-
if EmailAddress:
def new_user(sender, instance, **kwargs):
if instance.verified:
Please sign in to comment.
Something went wrong with that request. Please try again.