def has_delete_permission(self, request, obj=None): return RelatedModelAdmin.has_delete_permission(self, request, obj)
def get_menu(self, request, *args, **kwargs): basecontent = kwargs.pop('basecontent', None) queryset = RelatedModelAdmin.queryset(self, request, basecontent) return queryset and queryset.get() or None
def has_add_permission(self, request): return RelatedModelAdmin.has_add_permission(self, request)