def permission_name(name):
 def wraps(f):
  f._permission_name = name
  return f
 return wraps

def permission_name ( name ) : def wraps ( f ) : f . _permission_name = name return f return wraps
use this decorator to override the name of the permission .