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

Getting 'This Field is required" error while submitting form for the first time #169

Open
Nikhilsain opened this issue Jul 22, 2022 · 4 comments · May be fixed by #177
Open

Getting 'This Field is required" error while submitting form for the first time #169

Nikhilsain opened this issue Jul 22, 2022 · 4 comments · May be fixed by #177

Comments

@Nikhilsain
Copy link

I am getting this field is required error while submitting the form for the first time even after filling the form and after the second time it got submitted. It is appending the first submission query in the second submission of the form also. Why it is having so ?. Can you please fix it.
image

@Nikhilsain
Copy link
Author

it is showing one extra form when i see through inspect html of the form
i mean according to the above picture(added in issue) there should be only one row related to mobile but it is showing two one for mobile and one empty form

@kut
Copy link

kut commented Aug 3, 2022

Same experience here

@kut
Copy link

kut commented Aug 5, 2022

By the way - I fixed this by moving the inclusion of advanced-filters URLs BEFORE the inclusion of general Django admin. Django admin now has a catch-all error which makes advanced-filters autocomplete URLs fail if the order is wrong in your urls.py.

@Nikhilsain
Copy link
Author

Hey @kut,
Thanks for figuring it out :)
But this working for only a single query. For multiple queries using 'and' and 'or' operator between them, I am getting the same error and order of the queries also changes.
Follwing is the screenshot attached
image

@asfaltboy asfaltboy linked a pull request Oct 9, 2022 that will close this issue
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