def get_permission_codename(action, opts):
 return ('%s_%s' % (action, opts.model_name))

def get_permission_codename ( action , opts ) : return ( '%s_%s' % ( action , opts . model_name ) )
returns the codename of the permission for the specified action .