You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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",)
}
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 ReportAdmin(nested_admin.NestedModelAdmin):
list_display = ('id', 'description', 'type_report', 'modulo', 'active',)
search_fields = ('description', 'type_report',)
list_filter = ('type_report', 'active',)
The text was updated successfully, but these errors were encountered: