Merge branch 'release/v12.03'
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
</table>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% if not user.is_anonymous %}
|
||||
<p>
|
||||
<form enctype="multipart/form-data" action="/rowers/access/share/" method="post">
|
||||
{% csrf_token %}
|
||||
@@ -46,6 +48,7 @@
|
||||
<input type="submit" value="create shareable link">
|
||||
</form>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user