Wykres commitów

6637 Commity (8a3c47f76afcb45182aa11cc94e5e0443d2836a5)

Autor SHA1 Wiadomość Data
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
Matt Westcott 87f9031665 Update translator credits 2016-08-18 11:57:36 +01:00
Loic Teixeira 38dc4c0abf Replace mutable default argument (#2915) 2016-08-16 09:23:43 +01:00
Matt Westcott 197d85ce9f Disable client-side validation on Django 1.10 for multipart forms
Client-side validation fails on forms with prefilled file upload fields -
see https://code.djangoproject.com/ticket/27037. This is fixed in Django 1.10.1,
so as a workaround we disable client-side validation (using the 'novalidate'
attribute) for forms with enctype="multipart/form-data" on Django 1.10 only.

Fixes #2897
2016-08-15 18:36:11 +01:00
Matt Westcott e39fb5646c Release note for #2534 2016-08-11 12:04:10 +01:00
Benjamin Bach bee221b8c9 Make wagtailadmin depend on wagtailcore 0026, fixes #2529 2016-08-11 11:50:01 +01:00
Benjamin Bach 1718926c99 Make migrations in project_template home app reversible 2016-08-11 11:50:01 +01:00
Matt Westcott 7686290007 Rotate deprecation warnings to new versions 2016-08-09 20:11:31 +01:00
Matt Westcott 20df607918 Remove deprecated wagtail.wagtailimages.utils module 2016-08-09 20:11:31 +01:00
Matt Westcott 545c1601da Remove legacy content_type handling from AdminPageChooser 2016-08-09 20:11:31 +01:00
Matt Westcott 498ced15fb Remove PageChooserPanel.target_content_type 2016-08-09 20:11:31 +01:00
Matt Westcott 69d86ac3f7 Remove ThisShouldBeAList / SearchFieldsShouldBeAList deprecation helpers 2016-08-09 20:11:31 +01:00
Matt Westcott 5dd35da2cf Remove legacy support for appending tuples to search_fields 2016-08-09 20:11:31 +01:00
Matt Westcott bde04c1b8d I can count, honest 2016-08-09 16:58:41 +01:00
Matt Westcott 9080636903 Version-bump to start work on 1.7 2016-08-09 16:22:14 +01:00
Matt Westcott bc7739e104 Add usage examples for EmailBlock, IntegerBlock, DecimalBlock
Thanks to @OktayAltay for the original pull request.
2016-08-08 20:15:45 +01:00
Mikalai Radchuk fcea4ee30d Update "Upgrade considerations" for 1.6 (#2896)
`AbstractFormField.to_address` also requires migration.
We need to mention it in "Upgrade considerations" for Wagtail 1.6

[skip ci]
2016-08-08 14:56:36 +01:00
anatoly techtonik b3ab3c4e02 Add another tutorial (#2894) 2016-08-05 11:20:55 +03:00
Tom Dyson 5ce99e85c4 credit Caltech (#2885) 2016-08-02 17:10:43 +01:00
Matt Westcott 7eed879c6f Revert "Mark Django 1.10 support as provisional"
This reverts commit 0384a18f37.
2016-08-02 16:11:38 +01:00