Corrected docs regarding attributes required for logging in to the admin.

Regression in 939dcff24f.
This commit is contained in:
Jan Pieter Waagmeester 2020-12-11 23:12:43 +01:00 committed by GitHub
parent 1e7653117f
commit 991dce4fc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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