release note re updating custom Rendition models - fixes #685

pull/688/head
Matt Westcott 2014-10-09 17:29:10 +01:00
rodzic 44b7fb247d
commit 4bc657e1a2
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -93,5 +93,14 @@ The page locking mechanism adds a ``locked`` field to wagtailcore.Page, defaulti
'locked': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
Update to ``focal_point_key`` field on custom Rendition models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The ``focal_point_key`` field on wagtailimages.Rendition has been changed to ``null=False``, to fix an issue with duplicate renditions being created. If you have defined a custom Rendition model in your project (by extending the ``wagtailimages.AbstractRendition`` class), you will need to apply a migration to make the corresponding change on your custom model. Unfortunately neither South nor Django 1.7's migration system are able to generate this automatically - you will need to customise the migration produced by ``./manage.py schemamigration`` / ``./manage.py makemigrations``, using the wagtailimages migration as a guide:
- https://github.com/torchbox/wagtail/blob/master/wagtail/wagtailimages/south_migrations/0004_auto__chg_field_rendition_focal_point_key.py (for South / Django 1.6)
- https://github.com/torchbox/wagtail/blob/master/wagtail/wagtailimages/migrations/0004_make_focal_point_key_not_nullable.py (for Django 1.7)
Deprecated features
===================