code: def check_model_permission(self, app, model):
          
          if self.apps_dict.get(app, False) and model in self.apps_dict[app]['models']:
              return True
  
          return False
docs: Checks if model is listed in apps_dict
              Since apps_dict is derived from the app_list
              given by django admin, it lists only the apps
              and models the user can view