Private
Public Access
1
0

date correction

This commit is contained in:
Sander Roosendaal
2020-03-30 22:17:47 +02:00
parent 13b11a9ccd
commit 4067425c1e

View File

@@ -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)