X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/41c9c850bfd66107825bf7ed34ab543f7652b0bc..14c90138f071d90f241d3cae13d3409d81c04599:/apps/pdcounter/views.py?ds=sidebyside diff --git a/apps/pdcounter/views.py b/apps/pdcounter/views.py index 8fb1b13fa..edad76b75 100644 --- a/apps/pdcounter/views.py +++ b/apps/pdcounter/views.py @@ -22,7 +22,8 @@ def book_stub_detail(request, slug): def author_detail(request, slug): author = get_object_or_404(models.Author, slug=slug) - pd_counter = datetime(author.goes_to_pd(), 1, 1) + if not author.alive: + pd_counter = datetime(author.goes_to_pd(), 1, 1) form = PublishingSuggestForm(initial={"books": author.name + ", \n"})