<s> VERSION = ( <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:8> , "<STR_LIT>" , <NUM_LIT:0> ) <EOL> from django . contrib . auth . models import User , Group <EOL> from django . contrib . sites . models import Site <EOL> import mptt <EOL> from django . db . models . signals import post_save , post_delete <EOL> import settings <EOL> from zorna . account . models import UserProfile <EOL> def get_version ( ) : <EOL> version = '<STR_LIT>' % ( VERSION [ <NUM_LIT:0> ] , VERSION [ <NUM_LIT:1> ] ) <EOL> if VERSION [ <NUM_LIT:2> ] : <EOL> version = '<STR_LIT>' % ( version , VERSION [ <NUM_LIT:2> ] ) <EOL> if VERSION [ <NUM_LIT:3> : ] == ( '<STR_LIT>' , <NUM_LIT:0> ) : <EOL> version = '<STR_LIT>' % version <EOL> else : <EOL> if VERSION [ <NUM_LIT:3> ] != '<STR_LIT>' : <EOL> version = '<STR_LIT>' % ( version , VERSION [ <NUM_LIT:3> ] , VERSION [ <NUM_LIT:4> ] ) <EOL> return version <EOL> def user_post_save ( sender , ** kwargs ) : <EOL> instance = kwargs [ '<STR_LIT>' ] <EOL> if kwargs [ '<STR_LIT>' ] == True : <EOL> try : <EOL> instance . get_profile ( ) <EOL> except UserProfile . DoesNotExist : <EOL> UserProfile . objects . create_user_profile ( instance , { } , True ) <EOL> post_save . connect ( user_post_save , sender = User ) </s>
