Wykres commitów

2804 Commity (03ead75791e13f0e327585ab7060ab299390d744)

Autor SHA1 Wiadomość Data
Matt Westcott 03ead75791 Merge pull request #773 from kaedroho/search/analyser-fix
Don't use edgengram as query analyser
2014-10-31 10:57:20 +00:00
Matt Westcott ff6447b0ef Merge branch 'master' of github.com:torchbox/wagtail 2014-10-31 10:47:56 +00:00
Matt Westcott c84876b2bb Merge branch 'kaedroho-issue-756' 2014-10-31 10:47:45 +00:00
Matt Westcott 96f83b3171 release note for #767 2014-10-31 10:47:19 +00:00
Matt Westcott e00ae6bdc0 Merge branch 'issue-756' of https://github.com/kaedroho/wagtail into kaedroho-issue-756
Conflicts:
	wagtail/wagtailcore/tests/test_page_model.py
2014-10-31 10:45:00 +00:00
Karl Hobley 57ae33e5a5 Updated tests 2014-10-31 09:35:33 +00:00
Karl Hobley 7af321a2e9 Don't use edgengram as query analyser
When a field uses the partial matching, the edgengram_analyser is added
to that field.

This breaks down the field data into "ngrams" like so:
Hello -> "H", "He", "Hel", "Hell", "Hello"

This allows a users query for "Hel" to match the above text.

The issue that this commit solves is that this was accidentally set as
both the index analyser (as described above) and also the query
analyser.

Setting this as the query analyser will instruct Elasticsearch to
perform the above transformation on the users input to the box as well.
So if, for example, there was a document with the word "Horse" in it, a
users query for "Hello" will match this simply because they both start
with the letter "H".

The solution is to simply set the "index_analyser" instead of the
"analyser" field (which will sets "query_analyser" as well).
2014-10-30 16:45:52 +00:00
Karl Hobley 869a16f5fa Update frontendcache.rst 2014-10-30 16:25:15 +00:00
Matt Westcott 9dd493ace7 Only redirect back to edit page for the save action - not publish or submit 2014-10-30 16:14:45 +00:00
Matt Westcott f62b0d5d67 Merge branch 'master' of github.com:torchbox/wagtail 2014-10-30 15:35:09 +00:00
Matt Westcott 367a099989 Release note + upgrade note for #769 2014-10-30 15:34:56 +00:00
Matt Westcott 10f4d05894 Merge pull request #769 from kaedroho/issue-735
Don't update descendant urls if slug not updated. Fixes #735
2014-10-30 15:07:48 +00:00
Matt Westcott b14d8d398e Merge branch 'kaedroho-mope-584-fix-formbuilder-checkboxes' 2014-10-30 14:47:28 +00:00
Matt Westcott bdeaea7b55 release note for #768 2014-10-30 14:47:14 +00:00
Karl Hobley 8266684c37 Use form.cleaned_data when processing submissions
This fixes #584. It also doesn't pack single values into lists and will
remove csrftoken for us.
2014-10-30 14:38:41 +00:00
Tom Talbot b65adb295d Unit test for form-builder forms with multiple checkboxes 2014-10-30 14:38:41 +00:00
Karl Hobley 5db1539e0a Don't update descendant urls if slug not updated
Fixes #735

Previously, if you called Page.save with update_fields and didn't include
'slug', it would still attempt to update URL paths of descendant pages.

Wagtail 0.7 introduced a feature where it saves the latest revisions
created at date on the Page. This requires a Page.save call which used
update_fields. The bug caused update_descendant_paths to be called
anyway even though the slug wasn't committed to the database.

This caused Issue 735 because publishing a page will both save a
revision and save a page causing two hits to update_descendant_paths.
Running this method twice caused all descendant pages url_path
attributes to get mangled.
2014-10-30 10:44:05 +00:00
Karl Hobley 0067935971 Added failing test for #735 2014-10-30 10:23:35 +00:00
Karl Hobley 8f72b2e6e3 Don't clobber latest_revision_created_at
Fixes #756

This field was being set to None whenever a revision was pushed live
2014-10-30 09:33:54 +00:00
Karl Hobley 046477ddc7 Added failing test for #756 2014-10-30 09:33:30 +00:00
Karl Hobley bef9f772c1 Removed b'' prefix from Django 1.7 migration
These cause issues under Python 3. Please update Django
2014-10-30 09:32:16 +00:00
Karl Hobley 24ee28077a Fixed comment in images/views/multiple 2014-10-29 17:05:08 +00:00
Matt Westcott ea3c65131e release note for #730 2014-10-29 16:49:57 +00:00
Matt Westcott fe728f9c88 Merge branch 'kaedroho-issue-729' 2014-10-29 16:48:29 +00:00
Matt Westcott 4009defa6d Merge branch 'issue-729' of https://github.com/kaedroho/wagtail into kaedroho-issue-729 2014-10-29 16:41:17 +00:00
Matt Westcott f82fd0c222 release note for #716 2014-10-29 16:38:55 +00:00
Matt Westcott 436116dc3d Merge pull request #716 from kaedroho/search/prevent-abstract-models-from-being-indexed
Search: Prevent abstract models from being indexed
2014-10-29 16:35:10 +00:00
Matt Westcott e605ac1120 remove comment that refers to logic now done in get_image_edit_form 2014-10-29 16:28:12 +00:00
Matt Westcott a2e643679b release note for #676 2014-10-29 16:26:22 +00:00
Karl Hobley 6bb03a6777 Treat MPO formatted images like JPEG. Fixes #729 2014-10-29 16:25:32 +00:00
Matt Westcott b3ec1a0df2 Merge pull request #676 from kaedroho/issue-617
Added image filesize validation and some refactoring
2014-10-29 16:22:56 +00:00
Karl Hobley ae4381c9c4 No longer possible to index an abstract model
Also a bit of cleanup to centralise all "can this model be indexed?"
logic
2014-10-29 16:13:47 +00:00
Karl Hobley e0862a9c24 Exclude focal point from multiple image uploader 2014-10-29 15:54:40 +00:00
Karl Hobley 89e2db1f27 Fixed crash when no file selected 2014-10-29 15:44:39 +00:00
Karl Hobley 5f3d7e2820 Cleaned up allowed extensions regex 2014-10-29 15:22:44 +00:00
Karl Hobley 1af7d9f8dc Fixed JavaScript error when max_filesize is None 2014-10-29 11:06:27 +00:00
Karl Hobley 8441eac8dd Fixed reference to ALLOWED_EXTENSIONS_TEXT 2014-10-29 11:04:33 +00:00
Matt Westcott 7bfb1bb544 Merge branch 'kaedroho-search/search-fields-overriding' 2014-10-28 21:15:30 +00:00
Matt Westcott ad89e8f54d release note for #715 2014-10-28 21:15:18 +00:00
Matt Westcott b140fd88d9 Prevent search signal handlers from breaking fixture loading on Django 1.7 2014-10-28 20:43:22 +00:00
Matt Westcott 63834a3c57 add clarifying comment about how test_overriding relates to model inheritance 2014-10-28 17:33:42 +00:00
Matt Westcott b151a0b9b0 Merge branch 'search/search-fields-overriding' of https://github.com/kaedroho/wagtail into kaedroho-search/search-fields-overriding 2014-10-28 17:29:24 +00:00
Matt Westcott 59fb5c9222 fix spelling 2014-10-28 16:38:23 +00:00
Matt Westcott 4c392b9b00 Merge branch 'kaedroho-search/index-correct-object' 2014-10-28 16:37:16 +00:00
Matt Westcott bdd31f1141 Merge branch 'search/index-correct-object' of https://github.com/kaedroho/wagtail into kaedroho-search/index-correct-object 2014-10-28 16:35:30 +00:00
Karl Hobley ddbe634eda Release note for #705 2014-10-28 16:28:57 +00:00
Karl Hobley 674f55170e Changelog for #705 2014-10-28 16:28:12 +00:00
Karl Hobley af0fdc35e7 Changelog for #705 2014-10-28 16:26:43 +00:00
Karl Hobley 9b01f9e2d7 Merge pull request #705 from jsma/custom-user-model-fixes
Fixed login form to reference USERNAME_FIELD
2014-10-28 16:25:58 +00:00
Karl Hobley 86cc69baaf Added get_indexed_instance method
When a signal handler is run on a model that is the parent in a multi
table inheritance relationship, we do not have access to all of the
fields we need to properly reindex the object.

This commit adds a method that the developer can use to specify how to
get the specific type of a particular instance which we can use to
reindex it.
2014-10-28 16:10:49 +00:00