openzim / cms

ZIM file Publishing Platform
https://cms.openzim.org
GNU General Public License v3.0
4 stars 0 forks source link

IntegrityError on create_book #51

Closed rgaudin closed 2 years ago

rgaudin commented 2 years ago

When a book is created, it must be linked to a Title. Should there not be a matching title, a title is created using metadata from that initial book.

Should there already be a Title, only metadata not already present should be added.

The behavior is correct for tags (get_or_create) but not for metadata (create).