also cleant up a bit the import towards PEP8: builtin modules first, then 3rd party python packages, then local packages
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			298 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			298 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from __future__ import absolute_import
 | 
						|
 | 
						|
from flask import current_app
 | 
						|
from flask_wtf import RecaptchaField
 | 
						|
 | 
						|
from .forms import RegistrationForm
 | 
						|
 | 
						|
 | 
						|
def before_first_request():
 | 
						|
    if current_app.config['RECAPTCHA_ENABLE']:
 | 
						|
        setattr(RegistrationForm, 'recaptcha', RecaptchaField("You Human?"))
 |