From: Jan Szejko Date: Fri, 18 Aug 2017 11:45:11 +0000 (+0200) Subject: small fix in plain list X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/575d34bb579765311a9cb792e3961b2a08bf06e9 small fix in plain list --- diff --git a/src/catalogue/templatetags/catalogue_tags.py b/src/catalogue/templatetags/catalogue_tags.py index afb2e7ef5..f14cfa782 100644 --- a/src/catalogue/templatetags/catalogue_tags.py +++ b/src/catalogue/templatetags/catalogue_tags.py @@ -354,6 +354,8 @@ def plain_list(context, object_list, with_initials=True, by_author=False, choice last_initial = initial names.append((obj.author_unicode() if by_author else initial, [])) names[-1][1].append(obj) + if names[0] == ('', []): + del names[0] return { 'paged': paged, 'names': names,