django-ninja-extra
django-ninja-extra copied to clipboard
How to disable pagination for ModelControllerBase with ModelConfig
I have this controller and do not want pagination on it
@api_controller("/tools")
class ToolModelController(ModelControllerBase):
model_config = ModelConfig(model=Tool, schema_config=ModelSchemaConfig(depth=1))
How can I achive this?
@Bouni
@api_controller("/tools")
class ToolModelController(ModelControllerBase):
model_config = ModelConfig(model=Tool, schema_config=ModelSchemaConfig(depth=1), pagination=None)
Will update the documents for that
Nice will try when I'm back in the office. Thank you for the quick help!