fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9739714
)
Added setting extra_info on Book models during import.
author
Marek Stępniowski
<marek@stepniowski.com>
Thu, 9 Oct 2008 13:55:59 +0000
(15:55 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Thu, 9 Oct 2008 13:55:59 +0000
(15:55 +0200)
apps/catalogue/models.py
patch
|
blob
|
history
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.extra_info = book_info.to_dict()
book._short_html = ''
book.save()