def __init__(self, user, *args, **kwargs):

        super(HistoryComparisonForm, self).__init__(*args, **kwargs)

        # get different list of choices here
        choices = []
        user_profile = user.get_profile()
        for country_code, country_name in COUNTRY_CHOICES_LIMITED:
            if user_profile.has_full_access_for_country(country_code) or \
            user_profile.has_trial_access_for_country(country_code):
                choices.append((country_code, country_name))
        self.fields["country"].choices = choices
Run a command
dataset/ETHPy150Open tryolabs/daywatch/daywatch/gui/history_panel/forms.py/HistoryComparisonForm.__init__--crossover with--dataset/ETHPy150Open hwaf/hwaf/py-hwaftools/orch/features/feature_command.py/feature_command