Changes between Initial Version and Version 1 of Ticket #33582
- Timestamp:
- Mar 17, 2022, 10:26:02 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33582
- Property Cc added
- Property Type Uncategorized → Bug
-
Ticket #33582 – Description
initial v1 6 6 7 7 The error: 8 ``` 8 {{{ 9 9 % cat books.json | ./manage.py loaddata --database other --format json - 10 10 Traceback (most recent call last): … … 33 33 raise self.model.DoesNotExist( 34 34 testbug.models.DoesNotExist: Author matching query does not exist. 35 ``` 35 }}} 36 36 37 37 38 38 the model: 39 ``` 39 {{{ 40 40 from django.db import models 41 41 … … 80 80 return f"{self.id}: '{self.title}' by {self.author}" 81 81 82 ``` 82 }}} 83 83 84 84 the data (generated with `from django.core import serializers; from testbug.models import Book, Author; print(serializers.serialize("json", list(Author.objects.all()) + list(Book.objects.all()), indent=2, use_natural_foreign_keys=True, use_natural_primary_keys=True))` in the shell): 85 ``` 85 {{{ 86 86 [ 87 87 { … … 101 101 } 102 102 ] 103 ``` 103 }}}