mirror of
https://github.com/django/django.git
synced 2024-12-28 20:16:19 +00:00
1e6c3368f2
This was recently fixed for one-to-one relations; this patch adds support for foreign keys. Thanks kaiser.yann for the report and the initial version of the patch.
66 lines
1.3 KiB
JSON
66 lines
1.3 KiB
JSON
[
|
|
{
|
|
"pk": 1,
|
|
"model": "known_related_objects.tournament",
|
|
"fields": {
|
|
"name": "Tourney 1"
|
|
}
|
|
},
|
|
{
|
|
"pk": 2,
|
|
"model": "known_related_objects.tournament",
|
|
"fields": {
|
|
"name": "Tourney 2"
|
|
}
|
|
},
|
|
{
|
|
"pk": 1,
|
|
"model": "known_related_objects.pool",
|
|
"fields": {
|
|
"tournament": 1,
|
|
"name": "T1 Pool 1"
|
|
}
|
|
},
|
|
{
|
|
"pk": 2,
|
|
"model": "known_related_objects.pool",
|
|
"fields": {
|
|
"tournament": 1,
|
|
"name": "T1 Pool 2"
|
|
}
|
|
},
|
|
{
|
|
"pk": 3,
|
|
"model": "known_related_objects.pool",
|
|
"fields": {
|
|
"tournament": 2,
|
|
"name": "T2 Pool 1"
|
|
}
|
|
},
|
|
{
|
|
"pk": 4,
|
|
"model": "known_related_objects.pool",
|
|
"fields": {
|
|
"tournament": 2,
|
|
"name": "T2 Pool 2"
|
|
}
|
|
},
|
|
{
|
|
"pk": 1,
|
|
"model": "known_related_objects.poolstyle",
|
|
"fields": {
|
|
"name": "T1 Pool 2 Style",
|
|
"pool": 2
|
|
}
|
|
},
|
|
{
|
|
"pk": 2,
|
|
"model": "known_related_objects.poolstyle",
|
|
"fields": {
|
|
"name": "T2 Pool 1 Style",
|
|
"pool": 3
|
|
}
|
|
}
|
|
]
|
|
|