1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #4288 -- Modified serializers to pay attention to the to_field attribute on ForeignKeys. Thanks to Sandro Dentella for the report and the helpful test case.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2007-05-14 14:14:49 +00:00
parent f15036ae6d
commit c38a93e4d9
5 changed files with 34 additions and 12 deletions

View File

@@ -184,6 +184,12 @@ The end."""),
(m2m_obj, 445, M2MSelfData, []),
(m2m_obj, 446, M2MSelfData, []),
(data_obj, 450, UniqueAnchor, "UAnchor 1"),
(fk_obj, 451, FKDataToField, "UAnchor 1"),
(fk_obj, 452, FKDataToField, "UAnchor 2"),
(fk_obj, 453, FKDataToField, None),
(data_obj, 454, UniqueAnchor, "UAnchor 2"),
(data_obj, 500, Anchor, "Anchor 3"),
(data_obj, 501, Anchor, "Anchor 4"),