def get_default_model_permissions(model):
 permissions = set()
 for default in model._meta.default_permissions:
  permissions.add(('%s.%s_%s' % (model._meta.app_label, default, model._meta.model_name)))
 return permissions

def get_default_model_permissions ( model ) : permissions = set ( ) for default in model . _meta . default_permissions : permissions . add ( ( '%s.%s_%s' % ( model . _meta . app_label , default , model . _meta . model_name ) ) ) return permissions
return a set of all default permissions for a given model .