def replication_safe(f):
 from functools import wraps
 @wraps(f)
 def wrapper(request, *args, **kwargs):
  request.replication_safe = True
  response = f(request, *args, **kwargs)
  return response
 return wrapper

def replication_safe ( f ) : from functools import wraps @ wraps ( f ) def wrapper ( request , * args , ** kwargs ) : request . replication_safe = True response = f ( request , * args , ** kwargs ) return response return wrapper
usually views which do a post will require the next page to be read from the master database .