jquery chosen not showing dropdown in django admin - django

I tried to use jquery chosen in django admin and it is not showing dropdown after implementing. With some debug I can confirm that the dropdown is there but not showing due to some css issue.
Any help ?

Related

Django Admin inline-editable like Flask admin?

Flask Admin has this really nice inline-editable option. Is there something similar in Django-Admin?
Yes, there is "list_editable". Unfortunately, this is poor usability and I much more prefere the flask-Admin approach:
editable fields are underlined
Click -> popup opens where you can edit
Save -> save via Ajax

How to go about enabling side scrolling in Wagtail admin site

I have been tackling a particular design issue with Wagtail admin. Thus far I have not found a way to enable side scrolling admin listing pages. I want to extend my user model with more data about the users (e.g., occupation, education, address, and so on). While extending Wagtail with some models for a particular project, I noticed Wagtail admin listing pages do not automatically activate sides crolling as Django admin does.
I have looked at Wagtail hooks doccumentation but apparently there isn't a straightforward way to do that. I don't think it would be wise to mess with core css. Does anyone have an idea on how to customize css to enable that?
See pictures below:
This is how Django admin handles it. We can add filters while the table adjusts itself activating side scrolling.
Wagtail Bakery demo user model has few fields. So the listing admin page does not need to side scroll. I have not tested adding filters on this page yet, but I am assuming it will work just as it did to my other models.
This is how my admin page looks like when using filters. The table does not activate side scrolling and gets messed up when I use filters.
I'd appreciate any help poiting the way to best tackle this problem. Thus far I found this and this answers to similar, though not exaclty the same, problems with Wagtail admin design.

Django Admin now showing model list in iframe — what changed?

I have built a Django application with a custom interface. It hasn't been changed in a couple of years.
These (previous) servers are running Django 3.0.8.
Recently I set up a new server, and the Django Admin interface now shows the model list in a scrolling iframe, and long tables on the right side are also scrolled independently of the page.
This server is running Django 3.2.3.
I don't like the new interface, but it more importantly it will require an extensive rewrite of our custom admin css.
Can anyone point me to information about the change, or tell me if there is a setting to disable it?
I found the answer in this Stack Overflow answer. I will leave this question up because the other answer doesn't mention iframes.
Django 3.1 added the new scrolling sidebar in an iframe.
To disable it add the following to the root urls.py file:
from django.contrib import admin
admin.autodiscover()
admin.site.enable_nav_sidebar = False
The 3.1 Release Notes say:
The admin now has a sidebar on larger screens for easier navigation. It is enabled by default but can be disabled by using a custom AdminSite and setting AdminSite.enable_nav_sidebar to False.
Reference links from the original answer:
Django 3.1 release notes
The Django admin site

How do I add Django-Filer to the Django CMS toolbar?

On the Django CMS demo they have something called a "Media Library" which takes you right to the Django Filer.
How do I put this on the tool bar? I can go to it easily through the admin but not get an option for the toolbar.

The django grappelli admin panel menu

I have integrated the "django-grappelli" from here. This plugin changed my dashboard and all admin designs but is it any ways to add admin panel menu on top. I have checked the django admin-tools but grappelli is work with admin-tools but don't have any good documentation.
If you want a menu on top, this is not supported by django-grappelli at this time. From the grappelli documentation:
Note
grappelli.dashboard is a simplified version of Django Admin Tools:
Bookmarks, Menus and the custom App-Index are not available with
Grappelli.