def build_date_filter(request, model_admin, queryset):
    filterset_dict = {
        "year": NumericDateFilter(
            name="published_date",
            lookup_type="year",
        ),
        "month": NumericDateFilter(
            name="published_date",
            lookup_type="month",
        ),
        "day": NumericDateFilter(
            name="published_date",
            lookup_type="day",
        )
    }

    return type(
        type_str(queryset.model.__name__ % '%sDateFilterSet'),
        (django_filters.FilterSet,),
        filterset_dict,
    )(request.GET, queryset=queryset)
dataset/ETHPy150Open pydanny/django-admin2/djadmin2/filters.py/build_date_filter/swapped operands of `%`