Wykres commitów

9680 Commity (5afafa151c08ebc63c0d6144d827ae8e55d91637)

Autor SHA1 Wiadomość Data
Michał (Quadric) Sieradzki 5afafa151c fix invalid focal_point attribute on image edit view 2020-04-08 10:15:34 +01:00
Luiz Boaretto 61af7e8d2a Allow actions translation 2020-04-08 10:11:21 +01:00
Luiz Boaretto 7796a0cc44 Make 'All' translatable 2020-04-08 09:52:10 +01:00
Tom Dyson f37da8f7d8 Cache image renditions (#4883) 2020-04-07 14:05:27 +01:00
jacobtoppm 23af29d35c Use AdminOnlyMenuItem in both code samples in reports docs 2020-04-07 12:13:17 +01:00
jacobtoppm 2b096419dc Fix typo in import in reports documentation 2020-04-07 12:13:17 +01:00
Matt Westcott 1442d7ddf2 Revert "Add README badges for LGTM (#5831)"
This reverts commit 264ae1f999.
2020-04-05 16:43:06 +01:00
Andy Babic 9fa2ba939d Release notes for #5932 2020-04-03 22:01:08 +01:00
Andy Babic db8ab0875d Update BaseSetting to make it easier to utilise QuerySet.select_related() for more complex settings which reference related objects (such as pages) 2020-04-03 22:01:08 +01:00
Andy Babic e9371f45c7 Release notes for #5931 2020-04-03 21:28:13 +01:00
Andy Babic 18118f54b6 Update docs 2020-04-03 21:28:13 +01:00
Andy Babic a574c336cf Preserve more of the existing context_processor behaviour, which delays the site query until necessary 2020-04-03 21:28:13 +01:00
Andy Babic 458b514194 Add tests for new model methods, and refactor test_templates to utilise a new base class (with slightly more descriptive attribute names) 2020-04-03 21:28:13 +01:00
Andy Babic b023a38390 Update get_settings tag to initialise a SettingsProxy using the request (if available) 2020-04-03 21:28:13 +01:00
Andy Babic 255ad1f2a1 Add BaseSetting.for_request() to facilitate efficient repeat access of settings when accessed before rendering 2020-04-03 21:28:13 +01:00
Andy Chosak 3797132b4d Allow ListBlocks to leverage child bulk_to_python
Currently a select set of StreamField blocks like PageChooserBlock
expose a bulk_to_python method that is used to optimize their
retrieval from the database. As reported in issue 5926, ListBlock could
take advantage of this so that its child items are loaded at once,
instead of one at a time.

This change modifies how ListBlock.to_python works so that it calls its
child block's bulk_to_python, if defined. This allows for a single query
instead of one query per child item.

Note that this change doesn't add bulk_to_python to ListBlock itself,
meaning that individual ListBlocks in a StreamField or StructBlock are
still retrieved independently. But it does optimize the lookup for each
ListBlock.
2020-04-03 09:31:56 -04:00
Mohamed Feddad bb2e460c0b Replace deprecated ugettext, ungettext with gettext and ngettext. (#5907) 2020-04-02 17:15:26 +01:00
Tom Dyson 8c1a234f13 Remove our outdated preferences for deployment 2020-03-25 14:31:35 +00:00
Karran Besen 36e777418f Fix: Hide empty 'view live' links 2020-03-20 14:33:09 -04:00
Matt Westcott 3f86de27e0 Document AdminOnlyMenuItem in hooks documentation 2020-03-19 17:57:52 +00:00
Matt Westcott 205249b317 Release note for #5884 2020-03-19 17:49:33 +00:00
jacobtoppm 5e95e91226 Add AdminOnlyMenuItem and update custom report documentation to use it 2020-03-19 17:47:37 +00:00
jacobtoppm 587ccdc8b0 Add complete report example 2020-03-19 17:47:30 +00:00
jacobtoppm 423165b7c0 Refactor templates to remove unneeded aspects of _list_explore template, and simplify the process of adding extra columns and data for custom report views 2020-03-19 17:47:23 +00:00
jacobtoppm cbe3058794 Add documentation on how to add custom reports 2020-03-19 17:47:17 +00:00
jacobtoppm 0d6f261a93 Make ReportView use base_report template by default 2020-03-19 17:47:10 +00:00
Paulo 494260f8ee Fixed #5537 -- Fetch deferred stream fields from db (#5661) 2020-03-19 17:20:22 +00:00
Frantisek Holop fc0cf64ac6 Be more specific regarding the cached loader. (#5754)
Be more explicit about not needing to enable the `cached.Loader`
manually, unless using some custom loaders.
2020-03-19 17:01:29 +00:00
Michał (Quadric) Sieradzki 5e2d12b518 Add scope attribute to TableBlock generated tables for visually impaired users (#5865) 2020-03-19 16:50:55 +00:00
Michał (Quadric) Sieradzki 06fbde14b3 fix display issue on snippet edit view (#5883) 2020-03-19 16:44:34 +00:00
Fidel Ramos 0ccfe9568f Fix image resizing failing on slim images
Image operations sometimes calculate a target width or height of zero, which
make Willow raise a ValueError.

If an user uploads one such image it's possible to break the whole Wagtail
image manager/picker/uploader for all users.

The fix is to use a minimum of 1 pixel for either the target height or the
width. The image might lose some aspect ratio, but it's better than an
exception.
2020-03-19 16:39:20 +00:00
Matt Westcott 526649008d Release note for #5870 2020-03-19 16:12:40 +00:00
jacobtoppm 12d5edcef6 Add heading option to panels reference 2020-03-19 16:10:30 +00:00
jacobtoppm 75597f4527 Fix test_override_heading test 2020-03-19 16:10:30 +00:00
jacobtoppm cc430e2bb1 flake8 2020-03-19 16:10:30 +00:00
jacobtoppm ee0af70545 Add test for overriding edit handler heading 2020-03-19 16:10:29 +00:00
jacobtoppm d706c4f343 Allow FieldPanel heading kwarg to override its bound field label 2020-03-19 16:10:29 +00:00
Matt Westcott f83977c291 Add cache to speed up compiling media declarations for stream blocks
As proposed by @pimarc in https://github.com/wagtail/wagtail/issues/3062#issuecomment-586331423
2020-03-18 16:12:46 +00:00
Matt Westcott a34d509f7e Release note for #5880 2020-03-13 17:42:11 +00:00
jacobtoppm 32de830427 Fix datetimes being forced to string for xlsx export when unnecessary 2020-03-13 17:33:23 +00:00
jacobtoppm 54e5ed100a Move usual export fields (ie those identical to base report template) from LockedPagesView into ReportView 2020-03-13 17:33:22 +00:00
jacobtoppm b3e5278a1b Remove spreadsheet export setting, and allow a user to select format via a dropdown instead 2020-03-13 17:33:22 +00:00
jacobtoppm 00650e7311 Reduce openpyxl version for Python 3.5 compatibility 2020-03-13 17:33:21 +00:00
jacobtoppm 26ce5a5f73 Isort 2020-03-13 17:33:21 +00:00
jacobtoppm 4c7754e964 Reformatting 2020-03-13 17:33:21 +00:00
jacobtoppm 2ed86e2513 Remove unused imports 2020-03-13 17:33:20 +00:00
jacobtoppm fbead4549b Add documentation for spreadsheet format setting and new modeladmin features 2020-03-13 17:33:20 +00:00
jacobtoppm 720593b077 Add docstrings and make exported values for modeladmin spreadsheets mirror those in index listings 2020-03-13 17:33:20 +00:00
jacobtoppm 41bf6010df Add openpyxl for reading xlsx files in tests (xlsxwrites cannot, but is more performant and nicer to use, so is preferred outside testing rather than using openpyxl for both). Add tests for xlsx exports. 2020-03-13 17:33:19 +00:00
jacobtoppm b852ffc914 Add tests for CSV export to modeladmin and locked pages report, and fix breaking forms tests 2020-03-11 09:07:52 +00:00