Fixes tests

This commit is contained in:
Mouse Reeve 2021-03-29 11:38:14 -07:00
parent 0a4e755516
commit f6ad069f74

View file

@ -266,7 +266,9 @@ class Editions(View):
"editions": editions.filter(**filters).all(), "editions": editions.filter(**filters).all(),
"work": work, "work": work,
"languages": languages, "languages": languages,
"formats": set(e.physical_format.lower() for e in editions if e), "formats": set(
e.physical_format.lower() for e in editions if e.physical_format
),
} }
return TemplateResponse(request, "book/editions.html", data) return TemplateResponse(request, "book/editions.html", data)