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

ReadonlyInlineMixin not working? #38

Open
banesullivan opened this issue Dec 19, 2021 · 1 comment
Open

ReadonlyInlineMixin not working? #38

banesullivan opened this issue Dec 19, 2021 · 1 comment

Comments

@banesullivan
Copy link

Making an inline model with:

class MyAdmin(ReadonlyInlineMixin, admin.StackedInline):
    ...

Isn't read-only

@banesullivan
Copy link
Author

banesullivan commented Dec 19, 2021

def has_change_permission(self, request, obj=None):
    return False

needs to be added. get_readonly_fields seems like it isn't doing anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant