0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

9095 Commits

Author SHA1 Message Date
Coen van der Kamp
5e5484d4d7 Minor Python fixes identified by SonarQube.
1. Remove return from EmptySearchResults.__init__. Init method is
required to return None.
2. Remove useless self-assignment from BaseSearchBackend.
3. Remove useless self-assignment from wagtail.tests.settings.
2019-01-02 15:27:06 -05:00
Matt Westcott
8afbc6c3ec Document extended LTS date of Wagtail 1.13 2018-12-19 15:13:39 +00:00
Matt Westcott
9b24ca989f Fill in release date for 2.4 2018-12-19 15:13:28 +00:00
Matt Westcott
e224d0f3a9 Fetch new translations from Transifex 2018-12-19 15:13:00 +00:00
Matt Westcott
4997d1e922 Revert release note for #4916 2018-12-19 12:27:28 +00:00
Matt Westcott
c6a6fb3e33 Revert "Create new squashed migration for wagtailcore (#4916)"
This reverts commit b5f38c7d81.
2018-12-19 12:27:28 +00:00
Matt Westcott
a11f7ee015 Exclude the error messages from the count of inline panel elements (#4957)
Ref #4304 ; explicitly identify and count inline-panel-child elements as per https://github.com/wagtail/wagtail/pull/4304#discussion_r169149310
2018-12-17 17:15:40 +00:00
Sergey Fedoseev
5f7b7230a2 Fix SERVER_PORT for Page.dummy_request() when page is attached to Site with 443 port. (#4950) 2018-12-11 12:39:20 +00:00
Matt Westcott
056096c2de Remove old versionchanged note 2018-12-07 11:59:55 +00:00
Matt Westcott
26de8edf79 Add release note stubs for 2.5 2018-12-07 11:59:55 +00:00
Matt Westcott
abf753b5ad Rotate deprecation warnings 2018-12-07 11:59:55 +00:00
Matt Westcott
c487062fa8 Remove deprecated imports from wagtail.admin.forms 2018-12-07 11:59:55 +00:00
Matt Westcott
2101cc164c Version bump to start work on Wagtail 2.5 2018-12-07 11:59:55 +00:00
Matt Westcott
682333f8b1 Generate new source strings for translation 2018-12-06 16:54:15 +00:00
Matt Westcott
d3b6bf99c2 Fetch new translations from Transifex 2018-12-06 16:54:14 +00:00
Matt Westcott
9db37023c4 Mark 2.4 as still in development 2018-12-06 16:54:02 +00:00
Janneke Janssen
a9f33aa99e [QA] Module fix for browser module loading (#4939) 2018-12-04 17:31:12 +00:00
Karl Hobley
4abfbf89a0 Hide "delete snippets" button when no snippets selected 2018-11-30 16:57:47 +00:00
Dan Braghis
12ac86217a Fix #4785 Wagtail Sitemaps does not allow for Django Sitemap instances 2018-11-30 16:35:52 +00:00
Alex Gleason
e5f9c122ab Use better examples in ModelAdmin docs, add info about FieldPanels 2018-11-30 13:11:53 +00:00
Matt Westcott
44c905bf69 Release note for #4884 2018-11-30 12:11:14 +00:00
Janneke Janssen
84808ef039 Add a tests example for ancient javascript 2018-11-30 11:45:23 +00:00
Andy Chosak
b4bb97336f allow pages to have stopword-only slugs
This change modifies the cleanForSlug function used when creating a
page's slug from its title. The current behavior uses the Django URLify
function, which removes stopwords like "before". If a page title
consists only of such stopwords, the generated slug will be blank, thus
confusingly preventing page save.

This change handles this case by falling back to an alternate slug
generation approach that allows the stopwords to be used.

This does unfortunately introduce some potentially inconsistent
behavior; for example, a page titled "Before me" will be given a slug of
"me" and a page titled "Before" will be given a slug of "before".
(Honestly, the inclusion of "before" as a stopword is somewhat
unexpected.)

Fixes #4881.
2018-11-30 11:45:22 +00:00
Matt Westcott
b81e5c6b85 avoid referring to an internal function name in hook docs 2018-11-30 11:29:21 +00:00
Matt Westcott
23c02ecfa1 Release note for #4924 2018-11-30 11:27:35 +00:00
Matt Westcott
f70b4d80f2 In page action hook tests, confirm that the underlying action has/hasn't been performed 2018-11-30 11:25:02 +00:00
Maylon Pedroso
f34bda64ea Add hooks for page move actions 2018-11-30 10:50:42 +00:00
Thibaud Colas
a3dc9ed477 Bump draftjs_exporter version to fix entities export bug
This bumps the `draftjs_exporter` dependency requirement of Wagtail to [v2.1.5](https://github.com/springload/draftjs_exporter/blob/master/CHANGELOG.md#v215), which fixes an export bug when entities (say, links) are adjacent in the content.

See https://github.com/springload/draftjs_exporter/issues/106.
2018-11-29 17:37:48 +00:00
Matt Westcott
30f6a590b4
Documentation on rich text internals (#4927) 2018-11-29 16:36:09 +00:00
Janneke Janssen
80ef9554bc Update npm-run-all due to its flatmap-stream and event-stream vulnerabilities (#4930) 2018-11-28 11:35:21 +00:00
Nick Travis
469abe60f3 fixes #4928 remove deprecated references 2018-11-28 11:06:29 +00:00
Sergey Fedoseev
60bf798db1 Use unittest.mock instead of external module. (#4893)
* Use unittest.mock instead of external module.

* Avoid assert_called and assert_called_once, for Python <3.6 compatibility
2018-11-27 18:31:32 +00:00
Matt Westcott
ef3efdd185 Release note for #4917 2018-11-27 15:52:23 +00:00
Karl Hobley
0e24494d88 Create a squashed migration for wagtailimages (#4917)
* Create a squashed migration for wagtailimages

* Remove unneeded image updates

As this is the initial migration, there won't be any images. Not in
Wagtail's or a customised image model.

* Move RunPython blocks to the end of the migration

They can all be run on the latest schema without changes. This allows
the schema changes to be squashed.

* Simplify migration
2018-11-27 15:50:09 +00:00
Matt Westcott
76c7ef7262 Release note for #4916 2018-11-27 15:47:29 +00:00
Karl Hobley
b5f38c7d81 Create new squashed migration for wagtailcore (#4916)
* Create new squashed migration for wagtailcore

* Remove unneeded page updates

Since this is the initial migration, there won't be any pages other than
those created at the beginning

* Move RunPython blocks to the bottom of the migration

They can all be run on the latest schema without changes. This allows
the schema changes to be squashed.

* Simplify the migration
2018-11-27 15:45:27 +00:00
Karl Hobley
cc25168917 Changelog/release notes for #4845 and #4781 2018-11-22 11:26:26 +00:00
Karl Hobley
742027faae Fix flake8 errors: W504 line break after binary operator 2018-11-22 11:19:12 +00:00
Matt Westcott
cb8148ede2 Support media definitions on action menu items 2018-11-22 11:17:25 +00:00
Matt Westcott
9b3e0c15e0 Replace the page_action_menu template tag with a PageActionMenu class to manage rendering 2018-11-22 11:17:25 +00:00
Matt Westcott
b48566e735 Move action menu components to a new wagtail.admin.action_menu module 2018-11-22 11:16:59 +00:00
Matt Westcott
2a477c8e79 Add construct_page_action_menu hook 2018-11-22 11:14:01 +00:00
Matt Westcott
6adf7c8423 Add register_page_action_menu_item hook 2018-11-22 11:14:01 +00:00
Matt Westcott
89779f6e49 Add a generic menu item template 2018-11-22 11:14:01 +00:00
Matt Westcott
257f2a57a3 Add ordering indexes to action menu items 2018-11-22 11:14:01 +00:00
Matt Westcott
bea004cc75 Move action menu items into individually renderable components 2018-11-22 11:14:01 +00:00
Benjamin Bach
b3f1f50fba Use LocaleMiddleware's language as fallback language for user profiles w/o prefferred language
Also includes setting "en" as explicit language for tests
2018-11-22 11:11:56 +00:00
Karl Hobley
87da49bbb1 Changelogs/release notes for #4894, #4827, and #4907 2018-11-21 23:08:36 +00:00
Sergey Fedoseev
a134302548 Use functools.partial instead of django.utils.functional.curry().
django.utils.functional.curry() is planned to be removed in the future.
See https://code.djangoproject.com/ticket/27753.
2018-11-21 23:01:58 +00:00
Robert Rollins
ebf537a31a Allow overridden copy() methods in Page subclasseds to be called from the page copy view. 2018-11-21 23:01:17 +00:00