def has_change_permission(self, request, obj_or_class):
        codename = get_permission_codename('change', obj_or_class._meta)
        return request.user.has_perm('%s.%s' % (obj_or_class._meta.app_label, codename))
dataset/ETHPy150Open fusionbox/django-widgy/widgy/site.py/WidgySite.has_change_permission/original