Wykres commitów

10126 Commity (031a682f96ce6b1443669255be51676a9740dc85)

Autor SHA1 Wiadomość Data
John B 1a160dfef5 Serialize dates for Excel as isoformat strings via a custom IndexView 2020-05-28 13:28:49 -04:00
John B e707b85ea3 remove force_str when serializing values. Workaround Excel / openpyxl date issue 2020-05-28 07:43:47 -04:00
John B fd84ea5e61 linter error 2020-05-27 19:12:38 -04:00
John B 1b0d3a0564 pass model_admin down to label_for_field 2020-05-27 19:06:16 -04:00
Karl Hobley 88cff1f69e Remove extra quotes around query string when no matches found 2020-05-27 22:44:24 +01:00
Karl Hobley 8997370126 Return all results when no search terms specified
This lets search filters work when there is no search query.
2020-05-27 22:44:24 +01:00
Coen van der Kamp afa640fa14 Translate site default label 2020-05-27 22:41:19 +01:00
Scott Cranfill 8c6c7b8c77 Fix JS linting issue that slipped into SVG icon PR 2020-05-27 18:57:03 +01:00
Matt Westcott ab71e515e4 Release notes for #6057 2020-05-27 18:17:04 +01:00
Matt Westcott c3a7efa7a1 Revert prioritisation of USE_L10N=True over WAGTAIL_*_FORMATS 2020-05-27 18:01:35 +01:00
jacobtoppm ead6c8b2a6 Add WAGTAIL_TIME_FORMAT to settings reference 2020-05-27 13:55:52 +01:00
jacobtoppm ba4a72d867 Add tests for new date/time widget behaviour 2020-05-27 13:55:51 +01:00
jacobtoppm 38f18ae98b Allow the timepicker widget width to vary to account for longer time formats 2020-05-27 13:55:50 +01:00
jacobtoppm da3c162d4d Make datetimepicker consistent with USE_L10N=True by allowing it to override the WAGTAIL_x_FORMAT settings. Add a new setting, WAGTAIL_TIME_FORMAT, to specify the time formatting for the timepicker widget and the input format. 2020-05-27 13:55:49 +01:00
jacobtoppm 6da415335a Update php-date-formatter to 1.3.6 in vendor js to prevent datetimepicker 12 hour time issue where it would reduce the time by an hour each time the widget lost focus 2020-05-27 13:55:46 +01:00
Thibaud Colas 314a926f75 Update Python and JS test coverage collection to exclude tests 2020-05-27 09:11:26 +01:00
Thibaud Colas bb83801532 Fix RestaurantTag migration tests introducing an extra migration (#6075)
Due to the verbose_name being lowercased in django-taggit v1.3.0, 90c7224018.
2020-05-27 08:56:34 +02:00
Martin Sandström f4542c8ffc Fix that proper document icon are shown 2020-05-26 19:43:11 +02:00
GTpyro 147fda12fa Update signals.rst for Python 3 compatibility
The send_to_slack example was not compatible with Python 3. Example is updated using the requests & json libraries (instead of urllib & urllib2)
2020-05-26 19:21:13 +02:00
Matt Westcott a7ddb056b8 Fix test suite migrations to match django-taggit 1.3.0 2020-05-26 11:04:07 +01:00
Dan Bentley f43db1e69e Fetch and apply annotations if using specific() 2020-05-24 10:09:45 +10:00
Timothy Bautista 1958bba247 Fix typo in 2.10 release notes doc 2020-05-21 09:21:52 +01:00
Coen van der Kamp a1a2c35c1c Template render richtext without wrapper, add wagtail.contrib.legacy.richtext
* Add wagtail.contrib.legacy.richtext with tests & docs
* Make RichText.__html__ behave the same as template filter
* Resolves #1214
2020-05-21 07:53:31 +10:00
Coen van der Kamp eed16e0034 Add SVG Icons and include in admin menu
* This commit only covers the migration of the icons in the menu and draftail editor. All
other admin menu icons remain implemented as before.
* Existing font based icon support still exists.
* Convert menu icons to SVG
* This could be considered a breaking change for any Wagtail sites or
packages that are leveraging Wagtail's Button and Icon React components.
* Remove references to unused `submenu-trigger` class
* Prefix icon `id`s with `icon-` to prevent `id` collisions
* Add hooks support (not yet documented) for adding custom icons
2020-05-21 07:36:33 +10:00
Matt Westcott dcb517f080 Changelog note for phrase search / search query expressions 2020-05-20 14:31:37 +01:00
Matt Westcott 92e9e15683 Release note for phrase search / search query expressions 2020-05-20 14:29:00 +01:00
Karl Hobley 9dd9d0c895 Docs for parse_query_string 2020-05-20 14:12:27 +01:00
Karl Hobley 3d645fad53 Make database backend handle MATCH_ALL/MATCH_NONE properly 2020-05-20 14:12:24 +01:00
Karl Hobley a2bfb193b6 Added query parser and use it in the admin 2020-05-20 14:12:23 +01:00
Karl Hobley 7d32a4fd21 Implemented MATCH_NONE query 2020-05-20 14:12:20 +01:00
Karl Hobley 81811f6c1c Documentation for phrase search and query classes 2020-05-20 14:12:18 +01:00
Karl Hobley a501dc257d Implement Phrase() query in Elasticsearch backend 2020-05-20 14:12:17 +01:00
Karl Hobley b320ac7910 Implement Phrase() query in PostgreSQL backend 2020-05-20 14:12:16 +01:00
Karl Hobley a67ac1aa1d Implement Phrase() query in database backend 2020-05-20 14:12:15 +01:00
Karl Hobley 55db4646ed Add Phrase() query class and test 2020-05-20 14:12:14 +01:00
Karl Hobley 70c5dcf80f Add "Programming Rust" book to search fixture 2020-05-20 14:12:13 +01:00
Coen van der Kamp 99abab5d6b Add section to explain commit to pull request 2020-05-19 17:56:26 +01:00
Karl Hobley 58f6aecfc7
Some cleanups in PostgreSQL search module (#5953)
* Separated logic for extracting indexable content

* Docs edits

* Readability improvements

* Simplify/deduplicate indexing code

* Simplify search code

Pulled in some code that will be included in a future Django release
(query.py)

* Reword a limitation

* Fix typo in docstring

* Raise a warning when Boost() is used in PostgreSQL search backend

* Add note mentioning that RawSearchQuery can be replaced in Django 3.1

* Add comment mentioning that we can replace query.py if Django PR merged
2020-05-18 15:54:31 +01:00
Matt Westcott 52013f4920 Mention INSTALLED_APPS ordering in custom user docs 2020-05-18 11:33:53 +01:00
Thibaud Colas 7eeb44ad04 Replace gulp-sass with gulp-dart-sass
* Rewrite Sass code that relies on deprecated or removed features in Dart Sass
* Remove unneeded rebuild of node-sass
* Update lockfile
2020-05-17 21:00:20 +10:00
Thibaud Colas 471823f238 Upgrade to Jest 23
* Jest 24 is out but upgrading to it would require us to also update our Webpack tooling to Babel 7, which is quite significant work.
* Rewrite Draftail initialisation tests to stop relying on jsdom script parsing
2020-05-17 20:35:00 +10:00
Kalob Taulien b5f5ac10db
Add export_filename option to modeladmin
Merge pull request #6031 from wagtail/reports-filename
2020-05-15 10:04:57 -06:00
jacobtoppm da34ea9854 Add export_filename check to modeladmin tests 2020-05-15 11:07:32 +01:00
LB (Ben Johnston) d3dd7296c9
docs - revise heading levels for feature detection (images) (#6029) 2020-05-15 09:42:37 +01:00
Lars van de Kerkhof 6194dcb74b Do not download entire search index on search terms with no hits
When a slice is specifically set to [0:0], which would yield an empty list,
instead wagtail will clear the slice, effectively downloading the entire search
index.

This scenario happens when a search term does not return any results.
So every time you enter a search term that has no results, the entire search
index is downloaded, you don't really feel it because wagtail only downloads
the pk values, and it is unlikely a site has millions of pages, but it is still
very inefficient and unwanted.
2020-05-15 11:45:54 +10:00
Coen van der Kamp 7253b2f6db Show userbar on moderation preview with approve and reject items
* Fixes #6008
* Regression from cbabc3d9c7
2020-05-15 11:30:42 +10:00
jacobtoppm cc676c4c9e Add export_filename option to modeladmin 2020-05-14 15:50:47 +01:00
Kalob Taulien f757324039 Add Snippet hooks (after_edit_snippet, after_create_snippet and after_delete_snippet) 2020-05-14 20:47:36 +10:00
Cameron Lamb 55476426db Fix typo in ModelAdminGroup example 2020-05-14 20:37:34 +10:00
Robert Rollins 982b1d60a4 Page can_move permission method to ignore bulk_delete permission check
* bulk_delete exists to avoid allowing users to delete a whole lot of pages all at once by mistake, when they think they're just deleting one. However, the move/delete analogue breaks down when you're talking about moving an entire subtree, because you're *not* directly altering the children of the moved Page.
2020-05-10 21:12:24 +10:00