Line number: 1 - Book matching query does not exist.
11, Hello, 2024-01-12 12:00:00
Traceback (most recent call last):
File "/Users/matthew/Projects/django-import-export/tests/../import_export/resources.py", line 817, in import_row
self.save_instance(instance, new, using_transactions, dry_run)
File "/Users/matthew/Projects/django-import-export/tests/../import_export/resources.py", line 528, in save_instance
instance.save()
File "/Users/matthew/.virtualenvs/django-import-export-py312/lib/python3.12/site-packages/django/db/models/base.py", line 822, in save
self.save_base(
File "/Users/matthew/.virtualenvs/django-import-export-py312/lib/python3.12/site-packages/django/db/models/base.py", line 909, in save_base
updated = self._save_table(
^^^^^^^^^^^^^^^^^
File "/Users/matthew/.virtualenvs/django-import-export-py312/lib/python3.12/site-packages/django/db/models/base.py", line 1031, in _save_table
(getattr(self, f.attname) if raw else f.pre_save(self, False)),
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/matthew/.virtualenvs/django-import-export-py312/lib/python3.12/site-packages/django/db/models/fields/__init__.py", line 985, in pre_save
value = getattr(model_instance, self.attname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/matthew/.virtualenvs/django-import-export-py312/lib/python3.12/site-packages/django/db/models/query_utils.py", line 206, in __get__
instance.refresh_from_db(fields=[field_name])
File "/Users/matthew/.virtualenvs/django-import-export-py312/lib/python3.12/site-packages/django/db/models/base.py", line 724, in refresh_from_db
db_instance = db_instance_qs.get()
^^^^^^^^^^^^^^^^^^^^
File "/Users/matthew/.virtualenvs/django-import-export-py312/lib/python3.12/site-packages/django/db/models/query.py", line 649, in get
raise self.model.DoesNotExist(
core.models.Book.DoesNotExist: Book matching query does not exist.
