To send email to user
        :param template:
        :param kwargs:
        :return:

def send_email(self, template, **kwargs):
        """
        To send email to user
        :param template:
        :param kwargs:
        :return:
        """
        user_data = {
            "id": self.id,
            "username": self.username,
            "name": self.name,
            "first_name": self.first_name,
            "last_name": self.last_name,
            "email": self.email
        }
        kwargs.pop("user", None)
        send_mail(to=self.email, template=template, user=user_data, **kwargs)