wagtail/wagtail
Tim Heap 6bd168580e Change Indexed.search_fields to be a listish thing
Indexed.search_fields used to be a tuple. This is incorrect, and it
should have been a list.  Changing it to be a list now would be a
backwards incompatible change, as people do

    search_fields = Page.search_fields + (
        SearchField('body')
    )

Adding a tuple to the end of a list causes an error, so this would
cause all old code that used tuples to throw an error. This is not
great.

A new ThisShouldBeAList class, which subclasses list, has been added.
It additionally allows tuples to be added to it, as in the above
behaviour, but will raise a deprecation warning if someone does this.
Old code that uses tuples will continue to work, but raise a deprecation
warning.

See #2310
2016-03-24 21:05:09 +00:00
..
api Sort imports using isort 2016-03-11 10:48:00 +00:00
bin Sort imports using isort 2016-03-11 10:48:00 +00:00
contrib Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
project_template Version-bump to start work on 1.5 2016-03-11 13:43:00 +00:00
tests Change Indexed.search_fields to be a listish thing 2016-03-24 21:05:09 +00:00
utils Change Indexed.search_fields to be a listish thing 2016-03-24 21:05:09 +00:00
wagtailadmin Change Indexed.search_fields to be a listish thing 2016-03-24 21:05:09 +00:00
wagtailcore Change Indexed.search_fields to be a listish thing 2016-03-24 21:05:09 +00:00
wagtaildocs Change Indexed.search_fields to be a listish thing 2016-03-24 21:05:09 +00:00
wagtailembeds Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
wagtailforms Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
wagtailimages Change Indexed.search_fields to be a listish thing 2016-03-24 21:05:09 +00:00
wagtailredirects Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
wagtailsearch Change Indexed.search_fields to be a listish thing 2016-03-24 21:05:09 +00:00
wagtailsites Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
wagtailsnippets Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
wagtailusers Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
__init__.py Revert "Versioning changes" 2015-02-18 12:56:29 +00:00