#NEWLINE# def __init__( self , user , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        limit the choice of owner to the currently logged in users hats\n        ' #NEWLINE# super ( HistoryComparisonForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# choices = [ ] #NEWLINE# user_profile = user . get_profile ( ) #NEWLINE# for ( country_code , country_name ) in COUNTRY_CHOICES_LIMITED : #NEWLINE# #INDENT# if ( user_profile . has_full_access_for_country ( country_code ) or user_profile . has_trial_access_for_country ( country_code ) ) : #NEWLINE# #INDENT# choices . append ( ( user , country_name ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . fields [ 'country' ] . choices = choices