I have a Model in django with a field:
child = models.ForeignKey(Child, on_delete=models.SET_NULL)
def validate_child(child):
if child.parent = self:
RAISE ERR HERE
As you can see, I want to access self in the validate_child method. How can I do this? Thanks.

