-
Notifications
You must be signed in to change notification settings - Fork 187
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
Admin Change Form Page Blank #807
Comments
I was able to narrow down the cause of the error. The My guess now is, that the number of items in the attributes fields, which in my case is much higher than in my other models, causes the JS not to load properly. This also explains why some models with ManyToMany fields work, but not those that have the |
The page is blank because there is JavaScript error preventing applying x-cloak (docs below). I suspect something else what is not in your code here, is causing this issue. https://alpinejs.dev/directives/cloak I'm not sure if the information which you provided are going to be enough to help you. Would you mind to:
|
I am trying very hard to reproduce the error, but somehow it's very difficult. Other ManyToMany fields work, I also switched to But for other M2M fields, there is no issue even with selected values. Could it be, that somehow the model field name I will try to investigate more and create a minimal repo once I find it. And thanks for this project, I think it's really cool :) |
What version of Unfold are you using?
0.40.0
What version of Django are you using?
4.2.16
What browser are you using?
Firefox 131.0.2 and Chrome 129.0.6668.100
Did you checked changelog/commit history, if the bug is not already fixed?
Yes
Did you searched other issues, if the bug is not already fixed?
For example: Yes or No
Did you checked documentation?
Yes
Are you able to replicate the bug in the demo site?
No
Repository with reproduced bug
It's private project, I cannot share the code.
Describe your issue
change_form pages on some models are just blank (white). The console shows:
On some models there is no issue, it only affects some of my models. Here is one example of a model that works:
Here is a model that does not work:
For some reason, on the second model it does not seem to initiate the JS part properly. I can play around with the html and remove the attribute "x-cloak" and then I see the content, but the JS is not working.
I cannot find anything important that's different in these models or admin config.
The text was updated successfully, but these errors were encountered: