X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/378665e6e0ee8595e3c97096331bab365845cd9e..dbac994bfb1dbf4b1d6f035ad14bebd465a56741:/apps/dictionary/views.py?ds=inline diff --git a/apps/dictionary/views.py b/apps/dictionary/views.py index 4208d9b4c..76c89cd85 100755 --- a/apps/dictionary/views.py +++ b/apps/dictionary/views.py @@ -11,7 +11,7 @@ class NotesView(ListView): self.letters = ["0-9"] + [chr(a) for a in range(ord('a'), ord('z')+1)] self.letter = self.kwargs.get('letter') - objects = Note.objects.all() + objects = Note.objects.select_related('book').all() if self.letter == "0-9": objects = objects.filter(sort_key__regex=r"^[0-9]") elif self.letter: