code: def get_apphook_configs(obj):
      
      keys = get_apphook_field_names(obj)
      return [getattr(obj, key) for key in keys] if keys else []
docs: Get apphook configs for an object obj
  
      :param obj: any model instance
      :return: list of apphook configs for given obj