Feed only naive time to oaipmh,
[wolnelektury.git] / apps / pdcounter / views.py
index 8fb1b13..edad76b 100644 (file)
@@ -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"})