summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-16 08:06:16 +0100
committerGitHub <noreply@github.com>2020-01-16 08:06:16 +0100
commitbf77669453b9e9f64291da6701fe06fd5ba47e29 (patch)
treea2d13e239a715418a699979ad080c01beba62819 /docs
parent7400da49a5d0ec5a087c3cf05e0b2d15048fc93f (diff)
Fixed #29998 -- Allowed multiple OneToOneFields to the parent model.
We assumed that any OneToOneField's in a child model must be the parent link and raised an error when parent_link=True was not specified. This patch allows to specify multiple OneToOneField's to the parent model. OneToOneField's without a custom related_name will raise fields.E304 and fields.E305 so this should warn users when they try to override the auto-created OneToOneField.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions