summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2025-06-08 10:16:22 -0400
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-06-10 09:44:40 +0200
commit59427547692b433bef3640a96cc0f6601f57532f (patch)
tree170645b48e489a29182d2e43393f61654a0a96c6 /docs
parentf5441e42da691ee2e7aeeb9be70f98e2bce6d17d (diff)
Fixed #36449 -- Fixed field types in example model using ForeignObject.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/composite-primary-key.txt4
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,