mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #25159 -- Removed brackets from class/function/method signatures in docs.
Thanks hellbeast for the initial patch.
This commit is contained in:
parent
29465d438e
commit
87d55081ea
28 changed files with 99 additions and 99 deletions
|
@ -101,7 +101,7 @@ Other topics
|
|||
The register decorator
|
||||
----------------------
|
||||
|
||||
.. function:: register(*models, [site=django.admin.sites.site])
|
||||
.. function:: register(*models, site=django.admin.sites.site)
|
||||
|
||||
There is also a decorator for registering your ``ModelAdmin`` classes::
|
||||
|
||||
|
@ -2830,7 +2830,7 @@ supplied by the admin views for the current model.
|
|||
The ``staff_member_required`` decorator
|
||||
=======================================
|
||||
|
||||
.. function:: staff_member_required([redirect_field_name=REDIRECT_FIELD_NAME, login_url='admin:login'])
|
||||
.. function:: staff_member_required(redirect_field_name='next', login_url='admin:login')
|
||||
|
||||
This decorator is used on the admin views that require authorization. A
|
||||
view decorated with this function will having the following behavior:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue