@cache_permission
def can_edit_priority(user, project):
 return check_permission(user, project, 'trans.edit_priority')

@ cache_permission def can_edit_priority ( user , project ) : return check_permission ( user , project , 'trans.edit_priority' )
checks whether user can edit translation priority .