Merge branch 'release/v12.03'
This commit is contained in:
@@ -3743,3 +3743,7 @@ class ShareKey(models.Model):
|
|||||||
@property
|
@property
|
||||||
def expired(self):
|
def expired(self):
|
||||||
return self.creation_date + datetime.timedelta(self.expiration_seconds) < timezone.now()
|
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)
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
</table>
|
</table>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
{% if not user.is_anonymous %}
|
||||||
<p>
|
<p>
|
||||||
<form enctype="multipart/form-data" action="/rowers/access/share/" method="post">
|
<form enctype="multipart/form-data" action="/rowers/access/share/" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
@@ -46,6 +48,7 @@
|
|||||||
<input type="submit" value="create shareable link">
|
<input type="submit" value="create shareable link">
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user