def _has_changed(self, initial, data):
            if initial is None:
                initial = ['' for x in range(0, len(data))]
            else:
                if not isinstance(initial, list):
                    initial = self.decompress(initial)

            amount_widget, currency_widget = self.widgets
            amount_initial, currency_initial = initial

            try:
                amount_data = data[0]
            except IndexError:
                amount_data = None

            if amount_widget._has_changed(amount_initial, amount_data):
                return True

            try:
                currency_data = data[1]
            except __HOLE__:
                currency_data = None

            if currency_widget._has_changed(currency_initial, currency_data) and amount_data:
                return True

            return False
dataset/ETHPy150Open django-money/django-money/djmoney/forms/widgets.py/MoneyWidget._has_changed