diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/checks.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 86b287c0f2..03e74ecd1a 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -154,6 +154,8 @@ Related Fields * **fields.E339**: ``<model>.<field name>`` is not a foreign key to ``<model>``. * **fields.W340**: ``null`` has no effect on ``ManyToManyField``. * **fields.W341**: ``ManyToManyField`` does not support ``validators``. +* **fields.W342**: Setting ``unique=True`` on a ``ForeignKey`` has the same + effect as using a ``OneToOneField``. Signals ~~~~~~~ |
