def user_can_edit_setting_type(user, model):
 return user.has_perm(u'{}.change_{}'.format(model._meta.app_label, model._meta.model_name))

def user_can_edit_setting_type ( user , model ) : return user . has_perm ( u'{}.change_{}' . format ( model . _meta . app_label , model . _meta . model_name ) )
check if a user has permission to edit this setting type .