code: def set_managers(sender, **kwargs):
      
      cls = sender
     
      if issubclass(cls, ModelBase):
          cls.add_to_class('permitted', PermittedManager())
docs: Make sure all classes have the appropriate managers