+ def save(self, *args, **kwargs):
+ super().save(*args, **kwargs)
+ self.update_contact()
+
+ def update_contact(self):
+ email = self.user.email
+ if not email:
+ return
+
+ Contact = apps.get_model('messaging', 'Contact')
+ if self.manual:
+ Contact.update(email, Level.MANUAL_MEMBER, self.updated_at)
+ else:
+ Contact.reset(email)
+