summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAnubhav Joshi <anubhav9042@gmail.com>2014-07-04 00:00:17 +0530
committerTim Graham <timograham@gmail.com>2014-07-08 08:21:41 -0400
commit75ff7b8fb8335e181ad05e1d4244b4295cc7a105 (patch)
tree1a96dbf9d4670d9d2c35f9a78cfe2c804cceb7ad /docs/ref
parent136a3ffe21988d49e443867d129cc01fb62b34cd (diff)
Fixed #21832 -- Updated prompt, tests, and docs to show that USERNAME_FIELD supports FK after 9bc2d76.
Also added get_input_data() hook in createsuperuser. Thanks Chris Jerdonek and Tim Graham for review.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index e67276613a..f6fd81e242 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1478,6 +1478,16 @@ it when running interactively.
Use the ``--database`` option to specify the database into which the superuser
object will be saved.
+.. versionadded:: 1.8
+
+You can subclass the management command and override ``get_input_data()`` if you
+want to customize data input and validation. Consult the source code for
+details on the existing implementation and the method's parameters. For example,
+it could be useful if you have a ``ForeignKey`` in
+:attr:`~django.contrib.auth.models.CustomUser.REQUIRED_FIELDS` and want to
+allow creating an instance instead of entering the primary key of an existing
+instance.
+
``django.contrib.gis``
----------------------