mirror of
https://github.com/django/django.git
synced 2024-12-29 04:26:28 +00:00
4f216e4f8e
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.
17 lines
209 B
JSON
17 lines
209 B
JSON
[
|
|
{
|
|
"model": "fixtures.circulara",
|
|
"fields": {
|
|
"key": "x",
|
|
"obj": ["y"]
|
|
}
|
|
},
|
|
{
|
|
"model": "fixtures.circularb",
|
|
"fields": {
|
|
"key": "y",
|
|
"obj": ["x"]
|
|
}
|
|
}
|
|
]
|