Changed JSONField implementation. Now to get and set decoded value you must use get_...
[wolnelektury.git] / apps / catalogue / models.py
index 7be0f82..0e0e98f 100644 (file)
@@ -173,7 +173,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.set_extra_info_value(book_info.to_dict())
         book._short_html = ''
         book.save()