Docs: Fix wrong variable and correct it from 'form' to 'change_list_form'

This commit is contained in:
dalang 2016-05-30 12:04:40 +08:00
parent c9d23c6d39
commit 23b6f3daa6

View file

@ -60,7 +60,7 @@ See the :ref:`Backends <backends>` section how to setup the backend and
finish the configuration.
``django-constance``'s hashes generated in different instances of the same
application may differ, preventing data from being saved.
application may differ, preventing data from being saved.
Use this option in order to skip hash verification.
@ -210,7 +210,7 @@ settings the way you like.
#... do stuff to make your settings form nice ...
class ConfigAdmin(ConstanceAdmin):
form = CustomConfigForm
change_list_form = CustomConfigForm
change_list_template = 'admin/config/settings.html'
admin.site.unregister([Config])