From 13b11a9ccd798b19291c252e63cb5c38b1487a17 Mon Sep 17 00:00:00 2001
From: Sander Roosendaal
Date: Mon, 30 Mar 2020 22:14:52 +0200
Subject: [PATCH 1/2] fixed
---
rowers/templates/plannedsessions_print.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rowers/templates/plannedsessions_print.html b/rowers/templates/plannedsessions_print.html
index 22f7ddc3..b123b6ed 100644
--- a/rowers/templates/plannedsessions_print.html
+++ b/rowers/templates/plannedsessions_print.html
@@ -37,6 +37,8 @@
{% endfor %}
+
+{% if not user.is_anonymous %}
+{% endif %}
{% endblock %}
From 4067425c1e252f5a2b3db4852a37c03f83aa534a Mon Sep 17 00:00:00 2001
From: Sander Roosendaal
Date: Mon, 30 Mar 2020 22:17:47 +0200
Subject: [PATCH 2/2] date correction
---
rowers/models.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rowers/models.py b/rowers/models.py
index d0968637..38dbab45 100644
--- a/rowers/models.py
+++ b/rowers/models.py
@@ -3743,3 +3743,7 @@ class ShareKey(models.Model):
@property
def expired(self):
return self.creation_date + datetime.timedelta(self.expiration_seconds) < timezone.now()
+
+ @property
+ def expiration_date(self):
+ return self.creation_date + datetime.timedelta(self.expiration_seconds)