mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Corrected docs regarding attributes required for logging in to the admin.
Regression in 939dcff24f
.
This commit is contained in:
parent
1e7653117f
commit
991dce4fc5
@ -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…
Reference in New Issue
Block a user