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

KeyError 'some_field_for_form_a' is not found in FormB during concurrent requests #42

Open
JacoBezuidenhout opened this issue May 20, 2022 · 0 comments

Comments

@JacoBezuidenhout
Copy link

Hello everyone. I am posting this because I am out of ideas. I have tried to find the cause of this issue for the last 2 years.

Say I have 4 model admins:

TabbedAdminMixin, ModelAdmin
a: BasketAdmin
b: ConsumerAdmin

Normal Django ModelAdmin
c: RoleAdmin
d: BranchAdmin

It took me veeeery long to be able to find a way to re-create this error but as of yesterday, I can easily re-create it by using locust to simulate concurrent requests.

When I run locust with 5 concurrent users, each doing requests to /basket//change/ and /consumer//change/ I get a keyerror where render_tab_fieldsets_inlines want to create a, for example, BasketAdmin with fields from ConsumerAdmin's form and vice versa.

When I run the same locust file on /role//change/ and /branch//change/ (vanilla django modeladmins) I don't get keyerrors. This happend locally with runserver and in production with uwsgi.

Any help will be very much appreciated!

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

No branches or pull requests

1 participant