mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 02:20:59 +00:00
Add upgrade consideration note re direct use of Filter and Rendition
This commit is contained in:
parent
b11c8a9a0b
commit
2c9805dc3f
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ to:
|
|||
|
||||
You will then be able to run ``manage.py makemigrations`` and ``manage.py migrate`` as normal.
|
||||
|
||||
Additionally, third-party code that accesses the Filter and Rendition models directly should note the following and make updates where applicable:
|
||||
|
||||
* ``Filter`` will no longer be a Django model as of Wagtail 1.9, and as such, ORM operations on it (such as ``save()`` and ``Filter.objects``) are deprecated. It should be instantiated and used as an in-memory object instead - for example, ``flt, created = Filter.objects.get_or_create(spec='fill-100x100')`` should become ``flt = Filter(spec='fill-100x100')``.
|
||||
* The ``filter`` field of Rendition models is no longer in use; lookups should instead be performed on the ``filter_spec`` field, which contains a filter spec string such as ``'fill-100x100'``.
|
||||
|
||||
|
||||
``wagtail.wagtailimages.models.get_image_model`` has moved
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Reference in a new issue