Avoid recommending replacing image/document models entirely (#6624)

... when using the ``WAGTAILIMAGES_IMAGE_MODEL``/``WAGTAILDOCS_DOCUMENT_MODEL`` settings.

We can't really support this as we add new fields and methods to these base classes which all images/documents must support. If we did want to support swapping out the models entirely, every addition we make to the base models could be a breaking change.
pull/6625/head
Karl Hobley 2020-12-09 16:29:41 +00:00 zatwierdzone przez GitHub
rodzic f4702646bd
commit 45650053d5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -207,7 +207,7 @@ Images
WAGTAILIMAGES_IMAGE_MODEL = 'myapp.MyImage'
This setting lets you provide your own image model for use in Wagtail, which might extend the built-in ``AbstractImage`` class or replace it entirely.
This setting lets you provide your own image model for use in Wagtail, which should extend the built-in ``AbstractImage`` class.
.. code-block:: python
@ -261,7 +261,7 @@ Documents
WAGTAILDOCS_DOCUMENT_MODEL = 'myapp.MyDocument'
This setting lets you provide your own document model for use in Wagtail, which might extend the built-in ``AbstractDocument`` class or replace it entirely.
This setting lets you provide your own document model for use in Wagtail, which should extend the built-in ``AbstractDocument`` class.
.. code-block:: python