Wykres commitów

3002 Commity (250e5d97fb9419780ae2fc5586b46164ec6b2f93)

Autor SHA1 Wiadomość Data
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
Karl Hobley 83f80f2e04 Make default methods raise NotImplementedError 2014-10-29 16:41:08 +00:00
Karl Hobley 7967f0e07e Added DBSearchQuery class
This makes sure that the user is not filtering on any fields that are
not in search_fields. It also prevents the user from using any features
of QuerySet that are not in the search API
2014-10-29 16:41:08 +00:00
Karl Hobley 4f5b9ffaf1 Created BaseSearchQuery class
Moved some logic from ElasticSearchQuery into it
2014-10-29 16:41:07 +00:00
Karl Hobley ab896e318a DB search now returns a SearchResults object
Previously, it returned a QuerySet which gave the database backend much
more API than the Elasticsearch backend has. Which could potentially
cause issues if the developer is using the DB backend locally and the
Elasticsearch backend on their production server.

Fixes #460
2014-10-29 16:39:30 +00:00
Karl Hobley ca17d062c3 Created BaseSearchResults class
Moved some logic from ElasticSearchResults into it
2014-10-29 16:39:30 +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
Matt Westcott 51e650c739 Merge branch 'kaedroho-use-specific-page-class-in-admin' 2014-10-28 16:09:06 +00:00
Matt Westcott 1e1656440a Merge branch 'use-specific-page-class-in-admin' of https://github.com/kaedroho/wagtail into kaedroho-use-specific-page-class-in-admin 2014-10-28 16:08:48 +00:00
Matt Westcott 2559f75255 Merge branch 'kaedroho-search/deduplication-2' 2014-10-28 16:08:19 +00:00
Matt Westcott 47e32a3cd1 Release note for #714 2014-10-28 16:07:59 +00:00
Matt Westcott 80c0822066 Merge branch 'search/deduplication' of https://github.com/kaedroho/wagtail into kaedroho-search/deduplication-2 2014-10-28 15:49:42 +00:00
Karl Hobley 3c3c3b6557 Improved performance of signal handlers 2014-10-28 15:39:57 +00:00
Matt Westcott ceb7139b71 Merge branch 'master' of github.com:torchbox/wagtail 2014-10-28 14:54:03 +00:00