mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Update index.rst
Fixed note about signals
This commit is contained in:
parent
7b35f51cee
commit
18d6a48e7e
1 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ You can use it as:
|
|||
def constance_updated(sender, key, old_value, new_value, **kwargs):
|
||||
print(sender, key, old_value, new_value)
|
||||
|
||||
The sender is the ``config`` object, and the ``updated_key`` and ``new_value``
|
||||
The sender is the ``config`` object, and the ``key`` and ``new_value``
|
||||
are the ones just changed.
|
||||
|
||||
This callback will get the ``config`` object as the first parameter so you
|
||||
|
|
@ -201,7 +201,7 @@ To group settings together you can define fieldsets. Here's an example:
|
|||
'General Options': ('SITE_NAME', 'SITE_DESCRIPTION'),
|
||||
'Theme Options': ('THEME',),
|
||||
}
|
||||
|
||||
|
||||
.. note:: CONSTANCE_CONFIG_FIELDSETS must contain all fields from CONSTANCE_CONFIG
|
||||
|
||||
.. image:: screenshot3.png
|
||||
|
|
|
|||
Loading…
Reference in a new issue