kitware-resonant / django-resonant-utils

Django utilities for data management applications.
Apache License 2.0
2 stars 1 forks source link

ReadonlyInlineMixin not working? #38

Open banesullivan opened 2 years ago

banesullivan commented 2 years ago

Making an inline model with:

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

Isn't read-only

banesullivan commented 2 years ago
def has_change_permission(self, request, obj=None):
    return False

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