Hi everyone,
could anyone confirm the following situation?
I have a problem with the method "has_change_permission" of the "admin.TabularInline" class for a Model, which has a fk to ParentModel.
If I override that method with the following code:
def has_change_permission(self, request, obj=None):
print(type(obj))
return super().has_change_permission(request, obj)
When I go to "/admin/foo/parentmodel/add/" to add a new ParentModel in the admin panel:
In Django 2.1.3 I get:
<class 'NoneType'>
<class 'NoneType'>
In Django 2.1.4 I get:
<class 'NoneType'>
<class 'foo.models.ParentModel'>
<class 'NoneType'>
Can anyone reproduce the problem?
Thanks!