We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to prevent being abel to select the model itself.
But forward.Field("id", "ignore_id"), doesn't work since there is no "id" form field. What is the easiest way to handle this?
forward.Field("id", "ignore_id"),
I guess I could write a javascript handler to look at the URL, but maybe there is a simpler way to achieve this.
The text was updated successfully, but these errors were encountered:
Can you add the id in a GET param of the autocomplete url and then filter it out?
Sorry, something went wrong.
Here is the "solution" I found by inspecting the generated HTML but it feels very hacky:
forward=( # Hacky workaround for https://github.com/yourlabs/django-autocomplete-light/issues/1346 forward.Field("children-__prefix__-parent", "ignore_id"), forward.Field("language"), ),
It seems like children-__prefix__-parent contains the ID I need.
children-__prefix__-parent
I have not figured out how I can dynamically add a GET parameter.
No branches or pull requests
I want to prevent being abel to select the model itself.
But
forward.Field("id", "ignore_id"),
doesn't work since there is no "id" form field. What is the easiest way to handle this?I guess I could write a javascript handler to look at the URL, but maybe there is a simpler way to achieve this.
The text was updated successfully, but these errors were encountered: