unfoldadmin / django-unfold

Modern Django admin theme for seamless interface development
https://unfoldadmin.com
MIT License
1.19k stars 114 forks source link

Add support for django-nested-admin #177

Open cinarizasyon opened 8 months ago

cinarizasyon commented 8 months ago

Hello,

When using django-nested-admin's nested inlines, unfoldadmin does not show inputs/forms correctly.

image

Is there any plan to fix these issues? I think it deserves to be supported as well as django-guardian and django-simple-history because django-nested-admin is a popular extension for django-admin.

mcosti commented 8 months ago

@cinarizasyon are you extending the admin classes with the relevant UnfoldAdmin models?

cinarizasyon commented 8 months ago

@mcosti yeah, my admin classes seem like:

class BusinessAdmin(ExtraButtonsMixin, CustomModelAdmin, NestedModelAdmin):
   ....
lukasvinclav commented 8 months ago

This requires custom styling and integration.

dwasyl commented 5 months ago

Just wanted to add a +1 here for this package. The apps I run that could most use unfold all depend on django-nested-admin for some data entry. It would be great to see the package supported, or another solution for nested inlines.

RovshenTagangylyjov commented 3 months ago

Will django-nested-inline support be added in near future? Or are there any workarounds?

intp1 commented 4 weeks ago

With django-nested-admin, I managed to fix the field style in unfold way, by adding extension like :

from unfold.contrib.inlines.admin import TabularInline as UnfoldTabularInline

class ShopSPUAtlasInline(UnfoldTabularInline, nested_admin.NestedTabularInline):
    pass

However, switching to mobile display, the css width is not compliant with the mobile screen: image

Does anyone know how to fix the css width in this situation ? Thanks a lot.