1
0
mirror of https://github.com/django/django.git synced 2025-07-17 16:19:12 +00:00

[3.1.x] Corrected docs regarding attributes required for logging in to the admin.

Regression in 939dcff24f8e97d114595b102fb12348da482135.
Backport of 991dce4fc5b656e04af08a595181bd576f2bd857 from master
This commit is contained in:
Jan Pieter Waagmeester 2020-12-11 23:12:43 +01:00 committed by Mariusz Felisiak
parent a891e1bb0a
commit 50f436bb8a

View File

@ -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