code: def _track_class_field(cls, field):
      
      if '__' in field:
          _track_class_related_field(cls, field)
          return
      # Will raise FieldDoesNotExist if there is an error
      cls._meta.get_field(field)
      # Detect m2m fields changes
      if isinstance(cls._meta.get_field(field), ManyToManyField):
          m2m_changed.connect(
              tracking_m2m,
              sender=getattr(cls, field).through,
              dispatch_uid=repr(cls),
          )
docs: Track a field on the current model