Changes between Initial Version and Version 1 of Ticket #33582


Ignore:
Timestamp:
Mar 17, 2022, 10:26:02 AM (3 years ago)
Author:
François Granade
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33582

    • Property Cc François Granade added
    • Property Type UncategorizedBug
  • Ticket #33582 – Description

    initial v1  
    66
    77The error:
    8 ```
     8{{{
    99% cat books.json | ./manage.py loaddata --database other --format json -
    1010Traceback (most recent call last):
     
    3333    raise self.model.DoesNotExist(
    3434testbug.models.DoesNotExist: Author matching query does not exist.
    35 ```
     35}}}
    3636
    3737
    3838the model:
    39 ```
     39{{{
    4040from django.db import models
    4141
     
    8080        return f"{self.id}: '{self.title}' by {self.author}"
    8181
    82 ```
     82}}}
    8383
    8484the 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{{{
    8686[
    8787{
     
    101101}
    102102]
    103 ```
     103}}}
Back to Top