mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16: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:
@@ -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"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user