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

Missing the last item of the queryset after 0.7.1, Django 2.2.9 #245

Open
meesterguyman opened this issue Apr 6, 2020 · 2 comments
Open

Comments

@meesterguyman
Copy link
Contributor

We just discovered that in versions 0.7.1 and up, using SortableInlineAdminMixin kills the last item of the inline. Specifically, it add the final item to the empty row instead of giving it its own row. And the empty row is supposed to be hidden. Have a screenshot of what we're seeing if that would help.

@renatoch
Copy link

Have the same issue.
For reference @meesterguyman, in my case if I add the "add permission" to the inline object for the user (eg. MyModelInline, add permission "My Model Can add" in django group that user participates), the option is shown.
Not a fix, but a workaround if acceptable.

@renatoch
Copy link

Dirty "fix" that I adopted while this isn't correctly fixed:

In class MyModelAdmin:

class MyModelAdmin(...):
    class Media:
        css = {
            'all': ('css/admin_fix_sortable_inline.css',)
        }

File admin_fix_sortable_inline.css

.has_original.empty-form {
    display: table-row !important;
}

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

2 participants