Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Lookup Field for ModelControllerBase #178

Open
tareksanger opened this issue Aug 27, 2024 · 0 comments
Open

Configurable Lookup Field for ModelControllerBase #178

tareksanger opened this issue Aug 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tareksanger
Copy link

Description:

Summary:
Currently, the ModelControllerBase class in Django Ninja Extra only supports the primary key as the lookup field, which limits flexibility when working with models that might require alternative lookup fields. I would like to request the addition of a feature that allows the lookup field to be configurable.

Use Case:
In some applications, it is necessary to use a field other than the primary key for lookups, such as a UUID or a slug. Allowing developers to configure the lookup field would enhance the versatility of ModelControllerBase and align it with the flexibility provided by Django’s built-in views and routers.

@tareksanger tareksanger changed the title Configurable Lookup Field for ModelControllerBase in Django Ninja Extra Configurable Lookup Field for ModelControllerBase Aug 28, 2024
@eadwinCode eadwinCode added the enhancement New feature or request label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants