X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0543785bb9e74989036d99eb25cf23c3ef82cdf7..f9b76b3071f108b29a086c14e745da2f3921d82c:/src/api/models.py?ds=sidebyside

diff --git a/src/api/models.py b/src/api/models.py
index cc71a06f3..2481010be 100644
--- a/src/api/models.py
+++ b/src/api/models.py
@@ -45,6 +45,7 @@ class BookUserData(models.Model):
     book = models.ForeignKey(Book)
     user = models.ForeignKey(User)
     complete = models.BooleanField(default=False)
+    last_changed = models.DateTimeField(auto_now=True)
 
     def get_state(self):
         return 'complete' if self.complete else 'reading'