From 011abb7d96c75f6154c15a8a0f997d8c27698679 Mon Sep 17 00:00:00 2001 From: Anubhav Joshi Date: Wed, 9 Jul 2014 02:12:40 +0530 Subject: Fixed #19671 -- Added warnings that null and validators are ignored for ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review. --- docs/ref/checks.txt | 2 ++ docs/ref/models/fields.txt | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 85cd616253..f008661319 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -148,6 +148,8 @@ Related Fields * **fields.E338**: The intermediary model ```` has no field ````. * **fields.E339**: ``.`` is not a foreign key to ````. +* **fields.W340**: ``null`` has no effect on ``ManyToManyField``. +* **fields.W341**: ``ManyToManyField`` does not support ``validators``. Signals ~~~~~~~ diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index a99522c77c..3a64ad934a 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1448,6 +1448,10 @@ that control how the relationship functions. If in doubt, leave it to its default of ``True``. +:class:`ManyToManyField` does not support :attr:`~Field.validators`. + +:attr:`~Field.null` has no effect since there is no way to require a +relationship at the database level. .. _ref-onetoone: -- cgit v1.3