This commit is contained in:
Kyle Hornberg 2016-05-03 09:53:55 -05:00 committed by Tom Christie
parent 6c6e5c7fba
commit 399e1c1dcf

View File

@ -489,7 +489,7 @@ See the Django documentation on [reverse relationships][reverse-relationships] f
## Generic relationships
If you want to serialize a generic foreign key, you need to define a custom field, to determine explicitly how you want serialize the targets of the relationship.
If you want to serialize a generic foreign key, you need to define a custom field, to determine explicitly how you want to serialize the targets of the relationship.
For example, given the following model for a tag, which has a generic relationship with other arbitrary models: