0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
Commit Graph

8316 Commits

Author SHA1 Message Date
Matt Westcott
a46ba4805b Cleanup for the Block.__eq__ method (#4378)
* Fix incorrect assertion in TestSystemCheck

It only worked by accident, due to the definition of equality on block objects.

* Explicitly cast child_blocks.items() to a list when deconstructing blocks

The result of items() is a lazily-evaluated ItemsView object, which Django's deep_deconstruct function (used to detect changes for migrations) doesn't recognise; as a result, the blocks inside it don't get deconstructed. Luckily, this doesn't break migration change detection, because we define __eq__ on Block so that two blocks with matching definitions are considered equal. Nevertheless, it's best that we don't rely on that behaviour; it was only implemented originally as a workaround for https://code.djangoproject.com/ticket/24340 in Django <1.9 (where deep_deconstruct didn't recurse into lists either).

* Bring comment for Block.__eq__ up to date
2018-03-15 16:40:28 +01:00
Janneke Janssen
3536796471 Correct dropdown arrow styling in Firefox, IE11. Fix #4336 (#4373) 2018-03-15 12:36:51 +01:00
Caspowned
977dbae585 Rewrite password change feedback message. Fix #4200 (#4364) 2018-03-15 00:53:33 +01:00
Thibaud Colas
6246832408 Add JS source maps in production build for packaged Wagtail 2018-03-14 23:03:00 +01:00
Lucas Moeskops
6b272c43e4 Issue 4334: Excluded fields are also excluded when a panel set is exp… (#4363)
* Issue 4334: Excluded fields are also excluded when a panel set is explicitly defined on a model.

* Improved notation after review with @BertrandBordage

* Incorrect field name in comment
2018-03-14 19:01:32 +01:00
Thibaud Colas
6126510176 Fix focal area removal not working in IE11 and MS Edge. Fix #4284 2018-03-14 14:08:55 +01:00
Thibaud Colas
68daec7848 Remove outdated X-UA-Compatible meta from admin template 2018-03-14 10:35:50 +01:00
Timothy Allen
e4f4383a58 I found an extra space in the scss when extracting a list of usable icons bundled with Wagtail. (#4339) 2018-03-13 00:27:44 +01:00
Samir Shah
4c5eed2dd0 Remove support for IE6 to IE9 from project template (#4355)
I'd like to propose removing the shims for IE6-9 from the project template.

The rationale for this is the same as for dropping support for EOL version of Django, etc. - i.e., these versions of Internet Explorer are no longer supported by the vendor (the last version of Windows that you cannot upgrade to use IE10 or higher was Windows XP, which reached end of life in 2014).

On that basis I think that Wagtail should not include these shims by default - projects that for whatever reason still need to support these browsers can easily add them to their templates.
2018-03-12 11:40:09 +01:00
Matt Westcott
7a7d088d9c Release note for #4312 in 2.0.1 2018-03-08 17:02:11 +00:00
Matt Westcott
8e3308af83 Release note for #4312 in 2.1 2018-03-08 17:00:16 +00:00
Tim Heap
9d8563a744 Run Django password validators against populated user models
Previously the validators were run against empty user models, which made
the UserAttributeSimilarityValidator accept passwords that would
otherwise have been rejected.

Tests have been added to ensure the validator run correctly.
2018-03-08 16:30:04 +00:00
Matt Westcott
0d4f324d27 Release note for #4314 in 2.0.1 2018-03-08 16:26:36 +00:00
Matt Westcott
a2d41ef6bf Release note for #4314 in 2.1 2018-03-08 16:24:28 +00:00
Bertrand Bordage
98ea7bbf3f Prevents accounts leak through the password reset form.
Also displays an error on invalid e-mail submit.
2018-03-08 16:07:55 +00:00
Matt Westcott
ed6ee71438 Add 2.0.1 release notes 2018-03-08 12:45:21 +00:00
Andy Chosak
e2f2a8c005 add favicon to documentation
This change copies the Wagtail admin favicon.ico (from
wagtail/admin/static_src/wagtailadmin/images) into the Sphinx build
directory so that built docs use the same favicon as the admin.

Makes use of [the Sphinx `html_favicon` setting](http://www.sphinx-doc.org/en/1.5.1/config.html#confval-html_favicon)
which adds this line to the generated HTML:

```html
<link rel="shortcut icon" href="_static/favicon.ico"/>
```

Fixes #4340.
2018-03-08 12:24:13 +00:00
Bertrand Bordage
8f45392861 Prevents a potential XSS attack coming from wagtail.io. 2018-03-06 23:29:28 +01:00
Thibaud Colas
432e627054
Add Codecov integration to CircleCI to track JS test coverage, with separate flags (#4219) 2018-03-06 20:19:37 +02:00
Sebastian Brestin
e8ee632b29 Permission checking consistency #4305 2018-03-05 17:18:16 +00:00
Matt Westcott
46286e2c84
Upgrade Pillow to >=4.0 2018-03-05 16:39:34 +00:00
Todd Dembrey
073dcdddfe Ensure that rest framework is compatible with django 2.0
3.7.4 is the first release with django 2.0 compatibility
http://www.django-rest-framework.org/topics/release-notes/#374
2018-03-05 16:22:07 +00:00
Todd Dembrey
09f8a4f38a Draftail was failing to initialise with defined options in settings 2018-03-05 16:04:02 +00:00
DanAtShenTech
76975525f7 Typo and clarification (#4319) 2018-02-27 22:08:57 +02:00
Matt Westcott
5a028919b9 Fill in release date for 2.0
Conflicts:
	CHANGELOG.txt
2018-02-27 19:36:07 +00:00
Matt Westcott
530b8b32ec Fetch new translations from Transifex 2018-02-27 19:29:55 +00:00
Thibaud Colas
87b0a89e1e Upgrade Draftail to latest release, addressing #4296 2018-02-27 15:48:34 +00:00
Matt Westcott
3a638add7d Don't insert a spacer paragraph when preceded by a list 2018-02-27 10:38:42 +00:00
Matt Westcott
581e9a92c0 Ensure HTML entities are unescaped in html-to-contentstate conversion 2018-02-27 10:38:41 +00:00
Matt Westcott
9fadf1cb21 Add spacer paragraphs around atomic blocks where necessary 2018-02-27 10:38:39 +00:00
Michael Harrison
4da0bd7bd2 Improve redirect links search in the admin 2018-02-27 16:08:11 +11:00
Matt Westcott
cde31260d8 add documentation for custom send_mail method 2018-02-26 19:06:18 +00:00
Bertrand Bordage
343fa7358c Translates “username” in login form errors. 2018-02-26 16:51:41 +01:00
Thibaud Colas
96d39e4560 Display rich text image alt as plain text instead of read-only field 2018-02-23 16:19:04 +00:00
Thibaud Colas
c62c58c492 Add Draftail init fallback for StreamField/InlinePanel templated fields. Fix #4295 2018-02-23 16:02:57 +00:00
Loic Teixeira
f6bcfbf31e Update paths in documentation 2018-02-23 11:53:31 +00:00
Loic Teixeira
0b588e47eb Move misplaced test file 2018-02-23 11:53:31 +00:00
Loic Teixeira
8364dcd9ab Update path in comments 2018-02-23 11:53:31 +00:00
Tim Heap
e8a9f9d8c9 Use correctly sorted StreamBlock children in both prepend and append menus
Previously blocks were only correctly sorted and grouped in the prepend
menu, while they appeared in definition order in the append menu.
2018-02-22 13:52:13 +00:00
Thibaud Colas
18f9736c38 Fix Draftail initialising on the wrong elt. Fix #4295 (#4301) 2018-02-21 11:07:28 +00:00
Matt Westcott
5300b01fc4 Generate new source files for translation 2018-02-16 11:31:08 +00:00
Matt Westcott
501aa5ab63 Fetch new translations from Transifex 2018-02-16 11:31:07 +00:00
Matt Westcott
6d32ed00cf Gracefully handle inline styles/entities at top-level of rich text (#4290) 2018-02-16 10:32:02 +00:00
Matt Westcott
4fc05fc79e
Tutorial should refer to 'Pages', not 'Explorer' (#4293) 2018-02-16 10:31:12 +00:00
Dan Dietz
54ad64e431 Added LineBreakHandler to resolve missing line breaks 2018-02-15 17:36:59 +00:00
Matt Westcott
f28a4c4d2a Test streamfield form helper against StructBlock 2018-02-15 11:54:39 +00:00
Matt Westcott
7a15996d60 fixup! Add form data helpers 2018-02-15 11:54:37 +00:00
Matt Westcott
bed10c31cb Add release notes for form data helpers 2018-02-15 11:54:36 +00:00
Matt Westcott
5962d3da0c Add end-to-end tests of form data helpers 2018-02-15 11:54:35 +00:00
Matt Westcott
c205c8fac6 Add rich_text form data helper 2018-02-15 11:54:34 +00:00