

def set_context(self, serializer_field):
    self.field = serializer_field
    self.serializer = self.field.root

dataset/ETHPy150Open stackdio/stackdio/stackdio/core/validators.py BaseValidator.set_context/original