summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2019-07-31 17:06:59 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-08-26 14:48:40 +0200
commit03dbdfd9bbbbd0b0172aad648c6bbe3f39541137 (patch)
treecca311097a1679b6f50b4f26730d5c5eb4c18e3e /docs
parent5dac63bb844d0a976e1dd1591a323c5ba9674a97 (diff)
Fixed #29019 -- Added ManyToManyField support to REQUIRED_FIELDS.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.0.txt3
-rw-r--r--docs/topics/auth/customizing.txt8
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt
index b9afc2ad59..722baeeeaa 100644
--- a/docs/releases/3.0.txt
+++ b/docs/releases/3.0.txt
@@ -118,6 +118,9 @@ Minor features
password and required fields, when a corresponding command line argument
isn't provided in non-interactive mode.
+* :attr:`~django.contrib.auth.models.CustomUser.REQUIRED_FIELDS` now supports
+ :class:`~django.db.models.ManyToManyField`\s.
+
:mod:`django.contrib.contenttypes`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
index 7d287051d8..afc9bb3e62 100644
--- a/docs/topics/auth/customizing.txt
+++ b/docs/topics/auth/customizing.txt
@@ -576,6 +576,14 @@ password resets. You must then provide some key implementation details:
``REQUIRED_FIELDS`` has no effect in other parts of Django, like
creating a user in the admin.
+ .. versionadded:: 3.0
+
+ :attr:`REQUIRED_FIELDS` now supports
+ :class:`~django.db.models.ManyToManyField`\s without a custom
+ through model. Since there is no way to pass model instances during
+ the :djadmin:`createsuperuser` prompt, expect the user to enter IDs
+ of existing instances of the class to which the model is related.
+
For example, here is the partial definition for a user model that
defines two required fields - a date of birth and height::