# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.views.generic.list import ListView
from django.db.models import Count, Q
from django.views.generic.list import ListView
from django.db.models import Count, Q
nobj = nobj.filter(fltr)
self.fn_types = nobj.order_by('fn_type').values_list(
'fn_type', flat=True).distinct()
nobj = nobj.filter(fltr)
self.fn_types = nobj.order_by('fn_type').values_list(
'fn_type', flat=True).distinct()