unfoldadmin / django-unfold

Modern Django admin theme for seamless interface development

Home Page:https://unfoldadmin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export style breaks when using Export only in Django import-export

PaulleDemon opened this issue · comments

Whenever we use export only option in Django import-export the export button overlaps with add button

from import_export.admin import ImportExportModelAdmin, ExportActionModelAdmin

@admin.register(User)
class CustomUserAdmin(UserAdmin, ModelAdmin, ExportActionModelAdmin):

    form = CustomUserChangeForm
    add_form = CustomUserCreationForm

    import_form_class = ImportForm
    export_form_class = ExportForm
    export_form_class = SelectableFieldsExportForm

I am using V-0.27.0

image

^ the export is overlapping the plus icon

It works fine when having both import and export.

@admin.register(User)
class CustomUserAdmin(UserAdmin, ModelAdmin, ImportExportModelAdmin):

    form = CustomUserChangeForm
    add_form = CustomUserCreationForm

    import_form_class = ImportForm
    export_form_class = ExportForm
    export_form_class = SelectableFieldsExportForm

image