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