def get_model_perms(self, request):
        return {
            'add': True,
            'change': True,
            'delete': True,
        }
It seems this is only used for the list view. NICE :-)
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/media/admin/file/admin.py/FileAdmin.get_model_perms