get_result_table now takes queryset too