fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add basic paypal unit tests.
[wolnelektury.git]
/
src
/
api
/
models.py
diff --git
a/src/api/models.py
b/src/api/models.py
index
cc71a06
..
2481010
100644
(file)
--- 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'