                      attrs[field_name] = getattr(serializer.instance, field_name)
  
          # Determine the filter keyword arguments and filter the queryset.
          filter_kwargs = {
              field_name: attrs[field_name]
              for field_name in self.fields
          }
          return qs_filter(queryset, **filter_kwargs)
  
      def exclude_current_instance(self, attrs, queryset, instance):
          """
 
</s> remove             for field_name in self.fields:
                if field_name not in attrs:
                    attrs[field_name] = getattr(serializer.instance, field_name)
 </s> add             for source in sources:
                if source not in attrs:
                    attrs[source] = getattr(serializer.instance, source) </s> remove             if field_name not in attrs
 </s> add             if serializer.fields[field_name].source not in attrs </s> remove             defaults[field.field_name] = default
 </s> add             defaults[field.source] = default </s> remove         class MockSerializer:
            def __init__(self, instance):
                self.instance = instance

 </s> add 
            source: attrs[source]
            for source in sources
                      attrs[field_name] = getattr(serializer.instance, field_name)
  
          # Determine the filter keyword arguments and filter the queryset.
          filter_kwargs = {
            source: attrs[source]
            for source in sources
            source: attrs[source]
            for source in sources
          }
          return qs_filter(queryset, **filter_kwargs)
  
      def exclude_current_instance(self, attrs, queryset, instance):
          """
keep keep keep keep replace replace keep keep keep keep keep
 Fix UniqueTogetherValidator with field sources (#7086)

* Add failing tests for unique_together+source

* Fix UniqueTogetherValidator source handling

* Fix read-only+default+source handling

* Update test to use functional serializer

* Test UniqueTogetherValidator error+source 
rest_framework/validators.py