def as_dict(self):
        return {
            'username': self.username,
            'email': self.email
        }
Converts the model-instance into a safe that will include also task
dataset/ETHPy150Open mrgambal/vulyk/vulyk/models/user.py/User.as_dict