def save(self, *args, **kwargs):
created = self.pk is None<EOL>if self.check_user_settings(medium='<STR_LIT>'):<EOL><INDENT>super(Notification, self).save(*args, **kwargs)<EOL><DEDENT>if created:<EOL><INDENT>self.send_notifications()<EOL><DEDENT>
custom save method to send email and push notification