def permission_required_or_404(perm, *args, **kwargs):
 kwargs[u'return_404'] = True
 return permission_required(perm, *args, **kwargs)

def permission_required_or_404 ( perm , * args , ** kwargs ) : kwargs [ u'return_404' ] = True return permission_required ( perm , * args , ** kwargs )
simple wrapper for permission_required decorator .