Wykres commitów

6706 Commity (4dbf230d0420dd18d2a39cbbbfe4c14514c15e69)

Autor SHA1 Wiadomość Data
Mikalai Radchuk 8a41baa87d Release notes for #2966 2016-09-01 17:02:55 +03:00
Matt Westcott 49dae4ee10 Fix checkbox initial values on group permission edit form on Django 1.10 (#2966)
* Add test for #2962

* Refactor format_permissions to avoid poking around in BoundField.initial

Django 1.10 changed the internal representation of initial values of ModelChoiceFields; they are now
model instances rather than IDs. This broke the format_permissions tag, which inspected the initial value
of the field in order to reconstruct it as checkboxes. This internal poking-around is now avoided entirely,
by setting GroupForm to use the CheckboxSelectMultiple widget itself; format_permissions simply has to
reorganise those checkboxes appropriately, rather than building them from first principles.
2016-09-01 17:01:59 +03:00
Mikalai Radchuk 7c3b38ad40 Move release notes for #2573 to the top
[skip ci]
2016-08-31 14:57:59 +03:00
Mikalai Radchuk 5598910a2b Release notes for #2573 2016-08-31 14:13:47 +03:00
Karl Hobley daa82936d7 Elasticsearch 2 support (#2573)
* Created Elasticsearch 2 backend

* Added tests for Elasticsearch 2 backend

* Split models up into different indices

pages, images and documents are now in separate indices

* Prefix fields of child models to prevent mapping clashes

* Replaced index_analyzer with analyzer/search_analyzer

index_analyzer has been removed in Elasticsearch 2.0

https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_mapping_changes.html#_analyzer_mappings

There's no indication in Elasticsearch's docs that this wouldn't work on Elasticsearch 1.x. However, we found that the new configuration isn't reliable on Elasticsearch 1.6 and below (causes the test_query_analyzer test to fail randomly).

* Implemented new way of representing content types in search index

Instead of using a long string of model names that is queried using a
"prefix" query, we instead use a multi-value string field and query it
using a simple "match" query.

The only reason why this isn't implemented in the Elasticsearch 1.x
backend yet is backwards compatibility

* Added another child model of SearchTest with clashing field mapping

This checks that the namespacing of fields on child models is working properly (if it doesn't the update_index tests will fail)

* Added tests for get_model_root function

* fixup! Added tests for get_model_root function

* Docs updates for Elasticsearch 2 support

Also tweak examples to use elasticsearch2 backend by default

* Test against Elasticsearch 2 on travis
2016-08-31 13:46:57 +03:00
Matt Westcott 68d19d1efb No longer say that ATOMIC_REBUILD is "Experimental" (#2964)
We've used this in production on a few sites for over a year now and haven't hit any problems.
2016-08-31 10:08:14 +01:00
Karl Hobley e29f9b2423 No longer say that ATOMIC_REBUILD is "Experimental"
We've used this in production on a few sites for over a year now and haven't hit any problems.
2016-08-31 09:54:35 +01:00
Matt Westcott ae947642cd release note for #2562 2016-08-30 15:09:26 +01:00
Matt Westcott a0efc0d10e Improve wording of 'unpublish subpages' checkbox and make it an actual label 2016-08-30 15:09:25 +01:00
Matt Westcott b3c8c76678 Avoid duplicate db lookups for unpublish permission tests 2016-08-30 15:09:25 +01:00
jordij 65ba8873d2 Recursive unpublish for descendant pages 2016-08-30 15:09:24 +01:00
Robert Rollins f6b47235a3 Fixes the javascript error that was breaking the userbar on touch devices. 2016-08-30 12:22:59 +01:00
Matt Westcott e6c0d4f33e Fix spelling of Janssen 2016-08-30 11:03:28 +01:00
Matt Westcott 73fd2d8820 Make indenting of bullet points consistent 2016-08-30 11:00:02 +01:00
Matt Westcott f9f8399602 Release note for #2955 2016-08-30 10:59:14 +01:00
Janneke Janssen 22ea155987 Enable translation on the password required form for private pages (#2955) 2016-08-30 10:53:05 +01:00
Karl Hobley cdcdb4a4cd Update frontendcache.rst 2016-08-29 16:38:26 +01:00
Karl Hobley 692c4017f9 Changelog and release note for #1845 2016-08-29 15:24:53 +01:00
Karl Hobley 3e66a13753 Added boto3 to test dependencies 2016-08-29 15:15:59 +01:00
Rob Moorman df45c215a2 Added support for AWS CloudFront in Frontend cache invalidation module (#1845)
* added base cloudfrontbackend and testcase

* added boto3 cloudfront client

* implemented create invalidation method
added error handling botocore

* added aws docs

* fixed typo

* flake8 fixes

* added boto3 configuration docs

* removed return

* purge path instead of full url

* added multisite hostname mapping

* added validation of DISTRIBUTION_ID

* renamed Cloudfront to CloudFront

* added note to include www in mapping
added tests for cloudfront site mapping

* removed deprecated has_key, used in
fixed _create_invalidation

* changed type checking of dict
removed debug line of code to check hostname

* fixed dict type checking condition
added assert t make sure no invalid cache is being purged

* changed import order

* fixed isort error

* more detailed error message for cloudfront
pep8 fixes 120 chars per line

* Log missing cloudfront distribution id as info

Was logging as error, but it may be possible that a developer wants cloudfront on only specific hostnames.

* , => .

* Docs edits

* Removed hard-dependency on boto3
2016-08-29 15:15:27 +01:00
Matt Westcott 36089e5723 Mention WAGTAIL_ALLOW_UNICODE_SLUGS setting in release notes 2016-08-26 16:23:31 +01:00
Matt Westcott 205e22cc55 Mark 1.6.1 as no longer in development 2016-08-26 11:28:46 +01:00
Mikalai Radchuk b37e8ccbcf Change method name to AbstractEmailForm.send_mail
Also contails release notes for #2926
2016-08-26 12:06:23 +03:00
Tim Leguijt 2403be5938 Moved send_mail logic to seperate method to simplify overriding just this part of the form process 2016-08-26 11:32:27 +03:00
Mikalai Radchuk c40ab3596a Release notes for #2942 2016-08-26 10:49:40 +03:00
Matt Westcott 6c0f2235a4 Disable client-side validation on all admin forms #2942
* Revert "Disable client-side validation on Django 1.10 for multipart forms"

This reverts commit 197d85ce9f.

* Disable client-side validation on all admin forms

Client-side validation fails to handle all the nuances of how forms are
used in Wagtail, such as indicating errors across tabbed forms, and generally
results in a worse user experience than our existing server-side validation.

Fixes #2934

* Don't pre-emptively validate long-running forms if novalidate is set

We run checkValidity before enabling the spinner on long-running forms, so that we don't end up with a form that's been blocked from submission but still has the spinner running. Unfortunately, if novalidate is set, then checkValidity still returns False and aborts enabling the spinner, even though the 'real' validation (the one that prevents submission) never happens.

To make matters worse, if we abort before we've set up the cancelSpinner function, and then promptly encounter a custom onsubmit handler that recognises the error and attempts to call cancelSpinner, the JS breaks completely.

Eww.

To remedy this, we now only run checkValidity on forms that don't have novalidate, and only after setting up cancelSpinner.
2016-08-26 10:49:29 +03:00
Mikalai Radchuk 9b81d3b667 Release notes for #2937 2016-08-25 19:03:47 +03:00
Matt Westcott fc308c9ced Add setting to disable Unicode slug support #2937
* Ship our own copies of urlify.js and xregexp.min.js

This avoids issues with missing files when using Django 1.8 or omitting django.contrib.admin from INSTALLED_APPS (#2927), and guards against any breaking changes to these files in future Django releases.

* Add a WAGTAIL_ALLOW_UNICODE_SLUGS setting
2016-08-25 19:03:37 +03:00
Nick Smith ae3fba183a Upgrade BeautifulSoup→4.5.1; restore html5lib import 2016-08-25 12:42:57 +01:00
Janneke Janssen 603962146b Added documentation for editors to configure redirects 2016-08-25 11:18:55 +01:00
Elwin Buisman fd8f4b22fb Bumped supported Django version to 1.10
Bumped supported Django version to 1.10 according to requirements in setup.py
2016-08-25 10:09:08 +01:00
Matt Westcott 9111483dec Force ChoiceBlock.get_searchable_content to text - fixes #2928 2016-08-24 18:48:10 +01:00
Matt Westcott 7bc819640d Restore PageManager behaviour by setting it on an abstract superclass of Page
Django's standard behaviour is to preserve managers that are set on abstract
superclasses, so this allows us to eliminate the metaclass hackery.

Fixes #2933
2016-08-23 20:12:22 +01:00
Karl Hobley bfff095f8a Fixed minor formatting error in 1.6.1 release notes 2016-08-23 12:58:11 +01:00
Karl Hobley 7288644932 Changelog/release note for #2895 2016-08-23 12:56:27 +01:00
Karl Hobley 9bc6502459 Moved test into wagtailadmin 2016-08-23 12:47:41 +01:00
Mikalai Radchuk 07b7dd2940 Page create view now checks PageModel.can_create_at method
Fixes #2892
2016-08-23 12:47:34 +01:00
Karl Hobley 230f6eab5d Changelog/release note for #2922 2016-08-23 11:56:02 +01:00
Karl Hobley 628952f5f1 Support new-style middleware in page previews 2016-08-23 10:00:01 +01:00
Karl Hobley a5927d3177 Use new MIDDLEWARE setting in project template 2016-08-23 10:00:01 +01:00
Karl Hobley 07afc30445 Use new MIDDLEWARE setting in tests 2016-08-23 10:00:01 +01:00
Karl Hobley 7a18b538e6 Django 1.10 compatibility for sites/redirects middleware 2016-08-23 10:00:01 +01:00
David Burke db54a9f0c4 Update IntegerBlock docs to show correct kwargs (#2930)
It should be max and min value - not length. See [here](07c3ba84fb/wagtail/wagtailcore/blocks/field_block.py (L306)).

So this would work 

`blocks.IntegerBlock(max_value=10, min_value=0)`

but this wouldn't do anything

`blocks.IntegerBlock(max_length=10, min_length=0)`
2016-08-20 02:38:00 +01:00
Matt Westcott 989cfb550f Fix markdown formatting 2016-08-18 20:44:05 +01:00
Mikalai Radchuk f804174666 Marks names of default formats for translations 2016-08-18 20:43:17 +01:00
Matt Westcott 4bfa0081fc Fill in date for 1.6 release 2016-08-18 14:44:27 +01:00
Matt Westcott 7c9dc029c7 Release note for #2877 2016-08-18 12:05:33 +01:00
Tim Heap 75e58efab8 Move version from wagtail.wagtailcore to wagtail
This is where developers expect it to be, similar to Django and other
projects. The version info still exists at the old `wagtail.wagtailcore`
location, for backwards compatibility.

Fixes #2557
2016-08-18 12:05:33 +01:00
Tim Heap 948cc5190d Use new VERSION tuple to build docs version 2016-08-18 12:05:33 +01:00
Tim Heap 384d95d2b5 Add a VERSION tuple, and some version helpers from Django 2016-08-18 12:05:33 +01:00