fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new sync
[wolnelektury.git]
/
src
/
bookmarks
/
models.py
diff --git
a/src/bookmarks/models.py
b/src/bookmarks/models.py
index
88b3e85
..
234d051
100644
(file)
--- a/
src/bookmarks/models.py
+++ b/
src/bookmarks/models.py
@@
-13,6
+13,10
@@
class Bookmark(models.Model):
def __str__(self):
return str(self.uuid)
+ @property
+ def timestamp(self):
+ return self.created_at.timestamp()
+
def location(self):
return f'{self.book.slug}/{self.anchor}'