          value = attrs[self.field]
          date = attrs[self.date_field]
  
          filter_kwargs = {}
          filter_kwargs[self.field_name] = value
          filter_kwargs['%s__day' % self.date_field_name] = date.day
          filter_kwargs['%s__month' % self.date_field_name] = date.month
          filter_kwargs['%s__year' % self.date_field_name] = date.year
          return qs_filter(queryset, **filter_kwargs)
  
  
  class UniqueForMonthValidator(BaseUniqueForValidator):
      message = _('This field must be unique for the "{date_field}" month.')
 
</s> remove         filter_kwargs[self.field_name] = value
        filter_kwargs['%s__month' % self.date_field_name] = date.month
 </s> add         filter_kwargs[field_name] = value
        filter_kwargs['%s__month' % date_field_name] = date.month </s> remove         filter_kwargs[self.field_name] = value
        filter_kwargs['%s__year' % self.date_field_name] = date.year
 </s> add         filter_kwargs[field_name] = value
        filter_kwargs['%s__year' % date_field_name] = date.year </s> remove     def filter_queryset(self, attrs, queryset):
 </s> add     def filter_queryset(self, attrs, queryset, field_name, date_field_name): </s> remove     def filter_queryset(self, attrs, queryset):
 </s> add     def filter_queryset(self, attrs, queryset, field_name, date_field_name): </s> remove     def filter_queryset(self, attrs, queryset):
 </s> add     def filter_queryset(self, attrs, queryset, field_name, date_field_name):
        filter_kwargs[field_name] = value
        filter_kwargs['%s__day' % date_field_name] = date.day
        filter_kwargs['%s__month' % date_field_name] = date.month
        filter_kwargs['%s__year' % date_field_name] = date.year
          value = attrs[self.field]
          date = attrs[self.date_field]
  
          filter_kwargs = {}
        filter_kwargs[field_name] = value
        filter_kwargs['%s__day' % date_field_name] = date.day
        filter_kwargs['%s__month' % date_field_name] = date.month
        filter_kwargs['%s__year' % date_field_name] = date.year
        filter_kwargs[field_name] = value
        filter_kwargs['%s__day' % date_field_name] = date.day
        filter_kwargs['%s__month' % date_field_name] = date.month
        filter_kwargs['%s__year' % date_field_name] = date.year
        filter_kwargs[field_name] = value
        filter_kwargs['%s__day' % date_field_name] = date.day
        filter_kwargs['%s__month' % date_field_name] = date.month
        filter_kwargs['%s__year' % date_field_name] = date.year
        filter_kwargs[field_name] = value
        filter_kwargs['%s__day' % date_field_name] = date.day
        filter_kwargs['%s__month' % date_field_name] = date.month
        filter_kwargs['%s__year' % date_field_name] = date.year
          return qs_filter(queryset, **filter_kwargs)
  
  
  class UniqueForMonthValidator(BaseUniqueForValidator):
      message = _('This field must be unique for the "{date_field}" month.')
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Drop `set_context()` (#7062)

* Do not persist the context in validators

Fixes encode/django-rest-framework#5760

* Drop set_context() in favour of 'requires_context = True' 
rest_framework/validators.py