# 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.conf import settings
# 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.conf import settings
from catalogue.constants import LANGUAGES_3TO2
from .constants import FN_TYPES
from .models import Note, Qualifier
class NotesView(ListView):
from catalogue.constants import LANGUAGES_3TO2
from .constants import FN_TYPES
from .models import Note, Qualifier
class NotesView(ListView):
try:
self.qualifier = Qualifier.objects.get(qualifier=self.request.GET.get('qual'))
except Qualifier.DoesNotExist:
try:
self.qualifier = Qualifier.objects.get(qualifier=self.request.GET.get('qual'))
except Qualifier.DoesNotExist: