<s> import django <EOL> from django . contrib . auth . models import User <EOL> from django . template . loaders . app_directories import Loader <EOL> class LoaderWithSQL ( Loader ) : <EOL> if django . VERSION [ : <NUM_LIT:2> ] >= ( <NUM_LIT:1> , <NUM_LIT:9> ) : <EOL> def get_template ( self , * args , ** kwargs ) : <EOL> User . objects . all ( ) . count ( ) <EOL> return super ( LoaderWithSQL , self ) . get_template ( * args , ** kwargs ) <EOL> else : <EOL> def load_template ( self , * args , ** kwargs ) : <EOL> User . objects . all ( ) . count ( ) <EOL> return super ( LoaderWithSQL , self ) . load_template ( * args , ** kwargs ) </s>
