[Answered ]-Django Admin โ€“ customize use jquery inside and custom fields

2๐Ÿ‘

โœ…

I have no tutorials, but can give you advice.
You can customize your admin model with custom css and js, by Media class, like so:

class MyModelAdmin(admin.ModelAdmin):

    class Media:
        css = {
            "all": ("my_styles.css",)
        }
        js = ("my_code.js",)

You can look in dev tools, how Django chose names idโ€™s and classes for elements in page and also check the docs.
Admin docs

๐Ÿ‘คIvan Semochkin

Leave a comment