  from django.test import TestCase
  from rest_framework import serializers
  
  
  def dedent(blocktext):
      return '\n'.join([line[12:] for line in blocktext.splitlines()[1:-1]])
 
</s> remove from rest_framework.validators import UniqueTogetherValidator
 </s> add from rest_framework.validators import (
    UniqueForDateValidator, UniqueTogetherValidator
) </s> remove from django.core.exceptions import ValidationError
 </s> add  </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)
import datetime
  from django.test import TestCase
  from rest_framework import serializers
import datetime
  
  
  def dedent(blocktext):
      return '\n'.join([line[12:] for line in blocktext.splitlines()[1:-1]])
keep add keep keep keep keep
 First pass at unique_for_date, unique_for_month, unique_for_year 
tests/test_validators.py