Wykres commitów

8888 Commity (5f7b7230a26e244fd9c39d98b6e206902b594a9e)

Autor SHA1 Wiadomość Data
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
Matt Westcott 6baac3473b Make documentation links on welcome page work for prereleases
On a prerelease or release candidate of Wagtail, the documentation links on the welcome page are broken, which may confuse users into thinking this is a bug. In this case, we should link to the 'latest' branch of the docs, and use the 'main' version (e.g. 2.4a0 => 2.4) as the release notes page.
2018-11-21 22:59:48 +00:00
Matt Westcott 0ae5fe73c5 Documentation fixes don't go in the changelog (there are too many of them...) 2018-11-16 17:14:36 +00:00
Andy Chosak 17fc5cc913 add slovak character map for js slug generation
Porting of Django PR #9325, which fixes Django ticket #28768. These
changes were made in Django 2.1.

This adds support for certain Slovak characters when auto-generating
slugs for new pages. This logic is only triggered if
settings.WAGTAIL_ALLOW_UNICODE_SLUGS is set to False; see

http://docs.wagtail.io/en/v2.1.1/advanced_topics/settings.html#unicode-page-slugs

To test, create a new page and enter a title like "Vŕba". The
page's slug field will be automatically set to "vrba". In the
previous behavior, this would instead be automatically set to "vba".

https://github.com/django/django/pull/9325
https://code.djangoproject.com/ticket/28768
2018-11-16 17:13:37 +00:00
Sergey Fedoseev e8c88d44af Fixed reference to LoginView in docs. (#4901) 2018-11-15 11:13:00 +00:00
Sergey Fedoseev 1ff6a5003a Remove handling of MIDDLEWARE_CLASSES. (#4903)
Unneeded since e844200f27.
2018-11-15 11:11:42 +00:00
Samir Shah f76f41ea01
Remove IE9 debugging information from style guide 2018-11-15 12:20:43 +03:00
Alex Gleason 08ea980410 Fix missing comma in Draftail docs code 2018-11-14 17:11:49 -05:00