def get_profile_fields(self, user):
        field_data = []

        # Check for custom user model
        for field_name in User._meta.additional_fields:
            field_data.append(
                self.get_model_field_data(user, field_name))

        # Check for profile class
        profile_class = get_profile_class()
        if profile_class:
            try:
                profile = profile_class.objects.get(user=user)
            except ObjectDoesNotExist:
                profile = profile_class(user=user)

            field_names = [f.name for f in profile._meta.local_fields]
            for field_name in field_names:
                if ('user', 'id') in field_name:
                    continue
                field_data.append(
                    self.get_model_field_data(profile, field_name))

        return field_data
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/customer/views.py/ProfileView.get_profile_fields/swapped operands of `in`