Closed Jaymon closed 1 year ago
python3 has a descriptor __set_name__() magic method that will tell the descriptor what the name is, I should switch my logic to use this
__set_name__()
This should absolutely by used, the field should be updated with this:
def __set_name__(self, orm_class, name): self.orm_class = orm_class self.name = name
python3 has a descriptor
__set_name__()
magic method that will tell the descriptor what the name is, I should switch my logic to use this