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

SortableHiddenMixin module 'nested_admin' has no attribute 'SortableHiddenMixin' #223

Open
maxi-89 opened this issue Jul 8, 2022 · 0 comments

Comments

@maxi-89
Copy link

maxi-89 commented Jul 8, 2022

HI, im getting this error ...

line 61, in __getattr__ return ModuleType.__getattribute__(self, name) AttributeError: module 'nested_admin' has no attribute 'SortableHiddenMixin

here my code:

`class ReportSectionFieldInline(nested_admin.SortableHiddenMixin, nested_admin.NestedTabularInline):
model = ReportSectionField
extra = 0
classes = ['collapse']

class ReportSectionInline(nested_admin.SortableHiddenMixin, nested_admin.NestedTabularInline):
model = ReportSection
inlines = [ReportSectionFieldInline]
extra = 0
classes = ['secciones-informe']

class Media:
    css = {
        "all": ("admin/css/reportsection.css",)
    }

class ReportAdmin(nested_admin.NestedModelAdmin):
list_display = ('id', 'description', 'type_report', 'modulo', 'active',)
search_fields = ('description', 'type_report',)
list_filter = ('type_report', 'active',)

inlines = [ReportSectionInline]`

ty!
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

1 participant