globophobe / django-semantic-admin

✨ Django Semantic UI admin theme
https://semantic-admin.com
MIT License
142 stars 9 forks source link

Have no idea why my check all not work when using SemanticModelAdmin #68

Closed r51303 closed 1 year ago

r51303 commented 1 year ago

As title, when I change my admin model to SemanticModelAdmin my check all box is not working anyway.

image

But, if using DefaultModelAdmin, check all work again.

Very hard to debug, because there is no console error in chrome and have not any error show up everywhere.

Please help me, thanks.

globophobe commented 1 year ago

There is no problem with the http://semantic-admin.com demo.

What Django version are you using?

r51303 commented 1 year ago

There is no problem with the http://semantic-admin.com demo.

What Django version are you using?

Hi, @globophobe

Here is my django version

$ django-admin --version
4.1.7
globophobe commented 1 year ago

The demo is curently 4.1.6 The checkboxes require semantic_admin/static/admin/js/actions.js to be loaded. In my local environment, I updated to Django 4.1.7 and ran the demo with python manage.py runserver.

Can you confirm that actions.js is loaded, as below? actions

r51303 commented 1 year ago

The demo is curently 4.1.6 The checkboxes require semantic_admin/static/admin/js/actions.js to be loaded. In my local environment, I updated to Django 4.1.7 and ran the demo with python manage.py runserver.

Can you confirm that actions.js is loaded, as below? actions

Awesome, I check that file (action.js) is not load. And find my static file have not seen that file.

So, I'm running command $ python manage.py collectstatic

And, ctrl+F5 refresh my web page.

It's working now!!

Thanks for helping me a lot.