  
          filter_kwargs = {}
          filter_kwargs[self.field_name] = value
          filter_kwargs['%s__year' % self.date_field_name] = date.year
          return filter_kwargs
 
</s> remove         return filter_kwargs
 </s> add         return queryset.filter(**filter_kwargs) </s> remove         return filter_kwargs
 </s> add         return queryset.filter(**filter_kwargs) </s> remove     def get_filter_kwargs(self, attrs):
 </s> add     def filter_queryset(self, attrs, queryset): </s> remove     def get_filter_kwargs(self, attrs):
 </s> add     def filter_queryset(self, attrs, queryset): </s> remove     def get_filter_kwargs(self, attrs):
 </s> add     def filter_queryset(self, attrs, queryset):
        return queryset.filter(**filter_kwargs)
  
          filter_kwargs = {}
          filter_kwargs[self.field_name] = value
          filter_kwargs['%s__year' % self.date_field_name] = date.year
        return queryset.filter(**filter_kwargs)
keep keep keep keep replace
 Uniqueness constraints imply a forced 'required=True'. Refs #1945 
rest_framework/validators.py