django/tests/invalid_models_tests
Mariusz Felisiak bf77669453
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.
2020-01-16 08:06:16 +01:00
..
__init__.py
test_backend_specific.py Made assertions in invalid_models_tests consistent. 2017-07-11 13:12:17 -04:00
test_custom_fields.py Made assertions in invalid_models_tests consistent. 2017-07-11 13:12:17 -04:00
test_deprecated_fields.py Refs #26154 -- Removed deprecated CommaSeparatedIntegerField. 2017-01-17 20:52:02 -05:00
test_models.py Fixed #29998 -- Allowed multiple OneToOneFields to the parent model. 2020-01-16 08:06:16 +01:00
test_ordinary_fields.py Fixed #31155 -- Fixed a system check for the longest choice when a named group contains only non-string values. 2020-01-11 19:47:36 +01:00
test_relative_fields.py Fixed #29998 -- Allowed multiple OneToOneFields to the parent model. 2020-01-16 08:06:16 +01:00