def read_dev_agreement_required(f):
 def decorator(f):
  @functools.wraps(f)
  def wrapper(request, *args, **kw):
   if (not request.user.read_dev_agreement):
    return redirect('submit.app')
   return f(request, *args, **kw)
  return wrapper
 return decorator(f)

def read_dev_agreement_required ( f ) : def decorator ( f ) : @ functools . wraps ( f ) def wrapper ( request , * args , ** kw ) : if ( not request . user . read_dev_agreement ) : return redirect ( 'submit.app' ) return f ( request , * args , ** kw ) return wrapper return decorator ( f )
decorator that checks if the user has read the dev agreement .