When using the .xslx
import, non-nullable CharFields will fail with an exception when their value is left empty. Presumably because the cell has a value of None
in that case.
As seen on StackOverflow where a workaround was provided. IMHO this should simply be fixed instead.
To Reproduce
Steps to reproduce the behavior:
sqlite3.IntegrityError: NOT NULL constraint failed: core_book.author_email
Versions (please complete the following information):
Expected behavior
I expect no error. In particular: I expect that the output of an export is a valid input for an import.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4