def filter_queryset(self, attrs, queryset):
        value = attrs[self.field]
        date = attrs[self.date_field]

        filter_kwargs = {}
        filter_kwargs[self.field_name] = value
        filter_kwargs[self.date_field_name % '%s__month'] = date.month
        return queryset.filter(**filter_kwargs)
dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/validators.py/UniqueForMonthValidator.filter_queryset/swapped operands of `%`