MCPcopy Index your code
hub / github.com/fastapi-admin/fastapi-admin / get_actions

Method get_actions

examples/resources.py:132–141  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

130 return await super().row_attributes(request, obj)
131
132 async def get_actions(self, request: Request) -> List[Action]:
133 actions = await super().get_actions(request)
134 switch_status = Action(
135 label="Switch Status",
136 icon="ti ti-toggle-left",
137 name="switch_status",
138 method=Method.PUT,
139 )
140 actions.append(switch_status)
141 return actions
142
143
144@app.register

Callers

nothing calls this directly

Calls 2

ActionClass · 0.90
get_actionsMethod · 0.45

Tested by

no test coverage detected