'Generate a suitable class name for a concrete filter class. This is not
completely reliable, as not all filter class names are of the format
<Type>Filter.
ex::
FilterSet._csv_filter_class_name(DateTimeFilter, \'in\')
returns \'DateTimeInFilter\''

@classmethod
def _csv_filter_class_name(cls, filter_class, lookup_type):

    type_name = filter_class.__name__
    if type_name.endswith(u'Filter'):
        type_name = type_name[:(-6)]
    lookup_name = lookup_type.capitalize()
    return str((u'%s%sFilter' % (type_name, lookup_name)))
