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! Andrea Angelini -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAPQ7Y353CQS8G8wRKLB19tNd23VbVFSrZGkY8Tty-ZY1WNZew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.