diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-06-08 10:16:22 -0400 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-06-10 09:47:37 +0200 |
| commit | 6f99c8856d17e29564bc5d432bb7d7b8f73bc73c (patch) | |
| tree | 52f4c1542320133e43ef5d2a463ff22feb4027b0 | |
| parent | aec11dbb4c2c66af8d09dc194a46950751b0ea34 (diff) | |
[5.2.x] Fixed #36449 -- Fixed field types in example model using ForeignObject.
Backport of 59427547692b433bef3640a96cc0f6601f57532f from main.
| -rw-r--r-- | docs/topics/composite-primary-key.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/composite-primary-key.txt b/docs/topics/composite-primary-key.txt index 68356593b4..adb4ddee5a 100644 --- a/docs/topics/composite-primary-key.txt +++ b/docs/topics/composite-primary-key.txt @@ -113,8 +113,8 @@ To work around this limitation, ``ForeignObject`` can be used as an alternative:: class Foo(models.Model): - item_order_id = models.IntegerField() - item_product_id = models.CharField(max_length=20) + item_order_id = models.CharField(max_length=20) + item_product_id = models.IntegerField() item = models.ForeignObject( OrderLineItem, on_delete=models.CASCADE, |
