Skip to content
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

Feature request: work with Jazzmin #222

Open
DanielSwain opened this issue Jun 20, 2022 · 3 comments
Open

Feature request: work with Jazzmin #222

DanielSwain opened this issue Jun 20, 2022 · 3 comments

Comments

@DanielSwain
Copy link

It's great that nested admin works with Grappelli, but IMHO Django Jazzmin looks much nicer than Grappelli: https://github.com/farridav/django-jazzmin

It would be outstanding if nested admin would be made to work with Jazzmin. Thanks for your consideration.

@mrfoggg
Copy link

mrfoggg commented Oct 25, 2022

Jazzmin really much nicer than Grappell, django baton also fine and works with django-nested-admin. I want try me project with django-nested-admin and Jazzmin. Waiting compatibility

@avilags
Copy link

avilags commented Jan 13, 2023

hola tambien tengo problema con jazzmin. AL USAR ESTA LIBRERIA SE DEFORMA TODA LA VISTA

@mardukbp
Copy link

I found a simple solution for integrating django-nested-admin with jazzmin when using stacked inlines.

  1. In the project root create the directory templates/nesting/admin/inlines
  2. Copy jazzmin's stacked.html template (site-packages/jazzmin/templates/admin/edit_inline/stacked.html) to this directory.
  3. In this template add to the end of the innermost div.card-body
{% if inline_admin_form.form.inlines %}
{% for nested in inline_admin_form.form.inlines %}
    {% include nested.opts.template with inline_admin_formset=nested %}
{% endfor %}
{% endif %}

For a tabbed inline the solution should be similar. Just compare the corresponding templates and copy the relevant macros to the jazzmin template.

When we in this thread have worked out a solution for both kinds of inline, we can submit a pull request with jazzmin.html templates and solve this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants