1
0
mirror of https://github.com/django/django.git synced 2024-12-29 04:26:28 +00:00
django/tests/fixtures/fixtures/circular_reference_natural_key.json
Matthijs Kooijman 4f216e4f8e Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys.
Since #26291 forward references in natural keys are properly handled by
loaddata, so sorting depenencies in dumpdata doesn't need to break on
cycles. This patch allows circular references in natural keys by
breaking sort_depenencies() on loops.
2020-04-07 20:41:59 +02:00

17 lines
209 B
JSON

[
{
"model": "fixtures.circulara",
"fields": {
"key": "x",
"obj": ["y"]
}
},
{
"model": "fixtures.circularb",
"fields": {
"key": "y",
"obj": ["x"]
}
}
]