@classmethod
def apply_active_filters(cls, queryset):
    """
        Apply all filters defined to the queryset passed and return the result.
        """
    if cls.active_filters is not None:
        for filt in (cls.active_filters.values() or ()):
            if callable(filt):
                queryset = filt(queryset)
            else:
                queryset = queryset.filter(filt)
    return queryset
