<s> from easy_profiles . utils import get_profile <EOL> class LazyProfileMiddleware ( object ) : <EOL> """<STR_LIT>""" <EOL> @ property <EOL> def lazy_profile ( self ) : <EOL> return get_profile ( self . user ) <EOL> def process_request ( self , request ) : <EOL> self . user = request . user <EOL> request . __class__ . my_profile = self . lazy_profile </s>
