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