From 75ff7b8fb8335e181ad05e1d4244b4295cc7a105 Mon Sep 17 00:00:00 2001 From: Anubhav Joshi Date: Fri, 4 Jul 2014 00:00:17 +0530 Subject: 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. --- docs/ref/django-admin.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/ref') 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`` ---------------------- -- cgit v1.3