mirror of
https://github.com/django/django.git
synced 2025-06-15 08:29:11 +00:00
Fixed #36449 -- Fixed field types in example model using ForeignObject.
This commit is contained in:
parent
f5441e42da
commit
5942754769
@ -113,8 +113,8 @@ To work around this limitation, ``ForeignObject`` can be used as an
|
|||||||
alternative::
|
alternative::
|
||||||
|
|
||||||
class Foo(models.Model):
|
class Foo(models.Model):
|
||||||
item_order_id = models.IntegerField()
|
item_order_id = models.CharField(max_length=20)
|
||||||
item_product_id = models.CharField(max_length=20)
|
item_product_id = models.IntegerField()
|
||||||
item = models.ForeignObject(
|
item = models.ForeignObject(
|
||||||
OrderLineItem,
|
OrderLineItem,
|
||||||
on_delete=models.CASCADE,
|
on_delete=models.CASCADE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user