bf77669453
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. |
||
---|---|---|
.. | ||
__init__.py | ||
test_backend_specific.py | ||
test_custom_fields.py | ||
test_deprecated_fields.py | ||
test_models.py | ||
test_ordinary_fields.py | ||
test_relative_fields.py |