mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
[3.1.x] Corrected docs regarding attributes required for logging in to the admin.
Regression in939dcff24f
. Backport of991dce4fc5
from master
This commit is contained in:
parent
a891e1bb0a
commit
50f436bb8a
1 changed files with 1 additions and 2 deletions
|
@ -59,8 +59,7 @@ visiting the URL you hooked it into (``/admin/``, by default).
|
|||
|
||||
If you need to create a user to login with, use the :djadmin:`createsuperuser`
|
||||
command. By default, logging in to the admin requires that the user has the
|
||||
:attr:`~.User.is_superuser` or :attr:`~.User.is_staff` attribute set to
|
||||
``True``.
|
||||
:attr:`~.User.is_staff` attribute set to ``True``.
|
||||
|
||||
Finally, determine which of your application's models should be editable in the
|
||||
admin interface. For each of those models, register them with the admin as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue