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

There is no way to customize object_list for form_args. #151

Closed
1 task done
dasaderto opened this issue May 14, 2022 · 4 comments · Fixed by #171
Closed
1 task done

There is no way to customize object_list for form_args. #151

dasaderto opened this issue May 14, 2022 · 4 comments · Fixed by #171

Comments

@dasaderto
Copy link

Checklist

  • There are no similar issues or pull requests for this yet.

Is your feature related to a problem? Please describe.

I want to set up a custom objects_list for the QuerySelectField field, but I can't because this property is overridden in the ModelConverter.convert method.

Describe the solution you would like.

No response

Describe alternatives you considered

No response

Additional context

No response

@aminalaee
Copy link
Owner

Hey, thank you for the feedback.
Can you provide your use-case? Why do you need this?

@dasaderto
Copy link
Author

dasaderto commented May 14, 2022

Hey, thank you for the feedback.
Can you provide your use-case? Why do you need this?

For example, I want to allow only certain values ​​to be set in a QuerySelectField in form. To do this, I had to pull out a piece of code from the library, and remove this redefinition

@aminalaee
Copy link
Owner

Yeah that makes sense, feel free to create a PR to remove this limitation.

@aminalaee
Copy link
Owner

@dasaderto Hey, the PR will that, it would be great if you could take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants