Skip to content

Order of Jazzmin Installed Apps and Tabular Inline Editing of Foreign Keys #42

@Parthian

Description

@Parthian

This is a weird one.
In https://github.com/RamezIssac/my-shop/blob/main/my_shop/settings.py the installed apps has this.

    "erp_framework.admin.jazzmin_integration",
    "erp_framework.admin",
    "erp_framework.reporting",
    "slick_reporting",
    "jazzmin",

I have Tabular Inlines with Add Another ModelName.
With the above order of installed apps any ForeignKeys Select2 is inoperable. Clicks do nothing.
By chance on my local settings.py I changed the order of jazzmin as follows just so it was easier to comment out for tests.
On my local setup the Foreign Key Select2 boxes worked normally.
Whether it is worth investigating I'm not sure but a change to my-shop and docs would prevent this odd edge case.

    'erp_framework',
    "erp_framework.admin.jazzmin_integration", # if you want to use jazzmin theme, otherwise remove this line
    'jazzmin', # optional    
    'erp_framework.admin',
    'erp_framework.reporting',
    'slick_reporting',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions