fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added setting extra_info on Book models during import.
[wolnelektury.git]
/
apps
/
catalogue
/
models.py
diff --git
a/apps/catalogue/models.py
b/apps/catalogue/models.py
index
2022f1c
..
81965ce
100644
(file)
--- a/
apps/catalogue/models.py
+++ b/
apps/catalogue/models.py
@@
-170,6
+170,7
@@
class Book(models.Model):
book_shelves = list(book.tags.filter(category='set'))
book.title = book_info.title
book_shelves = list(book.tags.filter(category='set'))
book.title = book_info.title
+ book.extra_info = book_info.to_dict()
book._short_html = ''
book.save()
book._short_html = ''
book.save()