Add warning about unregistering image formats.

Add warning to documentation to warn that unregistering image formats
that are being used will create an error when viewing or editing pages.

See https://groups.google.com/forum/#!topic/wagtail/X8xTUs-2npA and
https://github.com/wagtail/wagtail/issues/1471#issuecomment-118436706.
pull/4504/merge
Martey Dodoo 2018-08-10 11:54:58 -04:00 zatwierdzone przez Matt Westcott
rodzic 7ad79c9a4a
commit 1247565d3d
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -143,6 +143,9 @@ To begin, import the ``Format`` class, ``register_image_format`` function, and o
To unregister, call ``unregister_image_format`` with the string of the ``name`` of the ``Format`` as the only argument.
.. warning::
Unregistering ``Format`` objects will cause errors viewing or editing pages that reference them.
.. _custom_edit_handler_forms:
Customising generated forms