+ def update_contact(self):
+ Contact = apps.get_model('messaging', 'Contact')
+ if not self.payed_at:
+ level = Contact.TRIED
+ since = self.started_at
+ else:
+ since = self.payed_at
+ if self.is_recurring():
+ level = Contact.RECURRING
+ else:
+ level = Contact.SINGLE
+ Contact.update(self.email, level, since, self.expires_at)
+