def get_delete_permission(opts):
    try:
        from django.contrib.auth import get_permission_codename  # flake8: noqa
        return '%s.%s' % (opts.app_label,
                          get_permission_codename('delete', opts))
    except __HOLE__:
        return '%s.%s' % (opts.app_label,
                          opts.get_delete_permission())
dataset/ETHPy150Open divio/django-filer/filer/utils/compatibility.py/get_delete_permission