  
          validators = []
          model_class = self.Meta.model
  
          for unique_together in model_class._meta.unique_together:
              if field_names.issuperset(set(unique_together)):
                  validator = UniqueTogetherValidator(
                      queryset=model_class._default_manager,
                      fields=unique_together
                  )
                  validators.append(validator)
  
          for parent_class in model_class._meta.parents.keys():
              for unique_together in parent_class._meta.unique_together:
                  if field_names.issuperset(set(unique_together)):
                      validator = UniqueTogetherValidator(
                          queryset=parent_class._default_manager,
                          fields=unique_together
 
</s> remove             if getattr(validator, 'requires_context', False):
                validator.serializer_field = self
 </s> add             if hasattr(validator, 'set_context'):
                validator.set_context(self)
 </s> remove             (field_name, value[field_name]) for field_name in self.fields
 </s> add             (field_name, attrs[field_name]) for field_name in self.fields </s> remove         if instance:
            queryset = queryset.exclude(pk=instance.pk)
 </s> add         if self.instance is not None:
            queryset = queryset.exclude(pk=self.instance.pk) </s> remove         instance = getattr(serializer, 'instance', None)
 </s> add         self.instance = getattr(serializer, 'instance', None)
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
  
          validators = []
          model_class = self.Meta.model
  
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
        # Note that we make sure to check `unique_together` both on the
        # base model class, but also on any parent classes.
        for parent_class in [model_class] + list(model_class._meta.parents.keys()):
              for unique_together in parent_class._meta.unique_together:
                  if field_names.issuperset(set(unique_together)):
                      validator = UniqueTogetherValidator(
                          queryset=parent_class._default_manager,
                          fields=unique_together
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 First pass at unique_for_date, unique_for_month, unique_for_year 
rest_framework/serializers.py