Ticket #35350: st1.txt

File st1.txt, 1.8 KB (added by Matt Hegarty, 6 months ago)

stack trace

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