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