Wykres commitów

8906 Commity (dc2f4873912eb537a4b2799c888cea04bb826151)

Autor SHA1 Wiadomość Data
Matt Westcott dc2f487391 Release / deprecation note for 2019-01-11 15:22:37 +00:00
Matt Westcott 5802314b3e Add tests for per-request custom behaviour in edit handlers 2019-01-10 17:35:27 +00:00
Bertrand Bordage 4a8fdb1c18 Binds instances to EditHandlers before generating forms. 2019-01-10 17:27:04 +00:00
Bertrand Bordage cc8eaf039a Updates tests to use EditHandler.bind_to. 2019-01-10 17:26:50 +00:00
Bertrand Bordage b599fce714 Allows binding instance and request to EditHandler before form. 2019-01-10 17:26:50 +00:00
Sergey Fedoseev f271c40cea Simplified Site.find_for_request(). ()
Handling of AttributeError is unneeded since support for Django 1.8 is dropped and handling of KeyError is unneeded because both hostname and port are obtained now via Django API (its current implementation can raise KeyError if SERVER_NAME or SERVER_PORT are absent, but they are required per PEP 3333).

Updated tests to include SERVER_NAME / SERVER_PORT when manually constructing HttpRequest objects, and removed tests that explicitly test the absence of these.
2019-01-10 15:37:35 +00:00
Mukesh fa5deb6b44 More informative error for invalid values passed to `|richtext` ()
Fixes 
2019-01-10 12:35:12 +00:00
Matt Westcott 5f0fa624f9 Add Thijs Walcarius to contributors 2019-01-10 11:38:33 +00:00
Thijs Walcarius 5738f0dae4 Also fix /media/images/ path 2019-01-10 11:37:32 +00:00
Thijs Walcarius 71eca17d0d Fix example alias URL 2019-01-10 11:37:32 +00:00
Matt Westcott d731ea6c9f Add missing null=True and imports to modeladmin example code 2019-01-10 10:59:05 +00:00
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 2018-12-19 12:27:28 +00:00
Matt Westcott c6a6fb3e33 Revert "Create new squashed migration for wagtailcore ()"
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 ()
Ref  ; 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. () 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 () 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 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 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 .
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 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 () 2018-11-29 16:36:09 +00:00
Janneke Janssen 80ef9554bc Update npm-run-all due to its flatmap-stream and event-stream vulnerabilities () 2018-11-28 11:35:21 +00:00
Nick Travis 469abe60f3 fixes remove deprecated references 2018-11-28 11:06:29 +00:00
Sergey Fedoseev 60bf798db1 Use unittest.mock instead of external module. ()
* 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 2018-11-27 15:52:23 +00:00
Karl Hobley 0e24494d88 Create a squashed migration for wagtailimages ()
* 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 2018-11-27 15:47:29 +00:00
Karl Hobley b5f38c7d81 Create new squashed migration for wagtailcore ()
* 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 and 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