fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed theme counts (#318, #319)
[wolnelektury.git]
/
apps
/
catalogue
/
migrations
/
0002_add_extra_info_to_book.py
diff --git
a/apps/catalogue/migrations/0002_add_extra_info_to_book.py
b/apps/catalogue/migrations/0002_add_extra_info_to_book.py
index
145d711
..
6de40ba
100644
(file)
--- a/
apps/catalogue/migrations/0002_add_extra_info_to_book.py
+++ b/
apps/catalogue/migrations/0002_add_extra_info_to_book.py
@@
-4,7
+4,7
@@
from catalogue.fields import JSONField
class Migration:
def forwards(self):
- db.add_column('catalogue_book', 'extra_info', JSONField())
+ db.add_column('catalogue_book', 'extra_info', JSONField(
null=True
))
def backwards(self):
db.delete_column('catalogue_book', 'extra_info')