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

grappelli NestedTabularInline.classes collapsible inlines don't work #90

Closed
luxoar opened this issue Jan 10, 2018 · 0 comments
Closed

Comments

@luxoar
Copy link

luxoar commented Jan 10, 2018

An instance of a nested InlineModel cannot be edited when using grapelli, collapsed classes and NestedTabularInline.

class DocumentInline(nested_admin.NestedTabularInline):
    model = Document
    extra = 0
    fields = ['document_type', 'file']
    classes = ('grp-collapse grp-closed',)

class ProjectInline(nested_admin.NestedStackedInline):
    model = Project
    inlines = ['DocumentInline']

class UserAdmin(nested_admin.NestedModelAdmin):
    model = User
    inlines = ['ProjectInline']

Results in this:

image

The fields are not editable.

Without classes attribute in DocumentInline:

image

@fdintino fdintino changed the title Editing Inline-InlineModel with Grapelli and Collapse doesn't work grappelli NestedTabularInline.classes collapsible inlines don't work Apr 8, 2019
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