Wykres commitów

9700 Commity (ef0c8f344684614d27d2f4e5cc8ba35794395e07)

Autor SHA1 Wiadomość Data
Matt Westcott ef0c8f3446 Add documentation for reporting security issues 2020-04-20 11:57:26 +10:00
Mitchel Cabuloy d0a0c804c2 Remove inappropriate banner landmarks & adopt main element in admin 404
According to the ARIA spec:

> A region that contains mostly site-oriented content, rather than page-specific content.

> Site-oriented content typically includes things such as the logo or identity of the site sponsor, and a site-specific search tool. A banner usually appears at the top of the page and typically spans the full width.

Where the `banner` role was applied was more page-specific than
site-specific. In addition, tags with `banner` roles should not live
under another landmark. To rectify, removed the misused banner roles.

Remove inappropriate contentinfo landmarks

According to ARIA spec 1.1

> A large perceivable region that contains information about the parent document.

> Examples of information included in this region of the page are copyrights and links to privacy statements.

They don't apply to the action buttons on where this was applied to.

Add main landmark to 404 page
2020-04-19 22:23:21 +10:00
Rich Brennan 2dbd0a49f9 Fix document serve response filename when non-ascii characters used
* url encode the document filename in the Content-Disposition header in the document serve view
2020-04-19 21:56:49 +10:00
LB Johnston ce815a5f00 page.copy to use `exclude_fields_in_copy` child & parental m2m relations
- fixes 
- test_copy_page_with_excluded_parental_and_child_relations
- ensure the tests are wrapped in a try/finally so that the model is always reset back even if tests fail
- update page model tests
2020-04-19 15:13:08 +10:00
LB a69559174f Add tutorials Q1 2020 2020-04-18 23:49:10 +01:00
Nick Smith 555adccc2a Set TreeQueryset.delete.queryset_only = True ()
Fixes 

This reverts Wagtail's behaviour to match Django's, where an error is
raised as a safety mechanism.

Projects relying on the non-safe behaviour should update e.g.
`MyModel.objects.delete()` to `MyModel.objects.all().delete()`.
2020-04-17 21:44:01 +01:00
Karl Hobley 0017216a02 Use queryset.model to get the queryset model class 2020-04-17 12:02:28 +01:00
Matt Westcott 297f663861 Rename _list_report.html to _list_page_report.html 2020-04-17 12:02:28 +01:00
Matt Westcott abb6634d92 Move default export_heading_overrides / list_export config to PageReportView 2020-04-17 12:02:28 +01:00
Karl Hobley 1e4a331766 Split out base report template into an empty base and a page-specific one 2020-04-17 12:02:28 +01:00
Karl Hobley a1b09f65c9 Rename export_heading_overrides to export_headings 2020-04-17 12:02:28 +01:00
Karl Hobley 7ee943a9c0 Fix circular import
Views shouldn't be imported directly by models files.
2020-04-14 18:55:21 +01:00
Matt Westcott b7af1f48da Fix migration numbering in test app 2020-04-14 10:15:56 +01:00
Matt Westcott deb1213148 Release notes for 2.8.1 2020-04-14 10:11:23 +01:00
Matt Westcott 1d043914b4 Release notes for 2.7.2 2020-04-14 10:11:23 +01:00
Matt Westcott 2223d6b232 Don't mark the translatable string 'None' as safe 2020-04-14 10:10:21 +01:00
Matt Westcott b5aef74801 Apply proper HTML escaping on StreamField block comparisons
An individual StreamField block in the comparison view may be rendered as a plain value (for blocks that are unchanged, added or deleted) or a diff (for blocks that are changed). In both cases, the output is returned as HTML, but must not contain any unescaped editor-supplied HTML.

For CharBlock, TextBlock and RawHTMLBlock, the block value is escaped so that any HTML tags in the content are shown verbatim.

For RichTextBlock and any other block types that do not override the default comparison behaviour, we take the basic (non-templated) HTML rendering of the block and extract text-only content from it. This is then returned in HTML-escaped form for the plain view, and run through diff_text().to_html() for the diff view (which handles escaping itself).
2020-04-14 10:10:21 +01:00
Thibaud Colas 72e8d861b6 Add README badges for LGTM ()
Based on our recent discussion in Slack. See  for an example PR that uses the LGTM check.
2020-04-08 12:13:35 +01:00
Matt Westcott 82cafd539a Add Jacob to core team 2020-04-08 12:12:52 +01:00
Karl Hobley 9d4009bebb Changelog/release notes 2020-04-08 11:12:57 +01:00
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 () 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 ()"
This reverts commit 264ae1f999.
2020-04-05 16:43:06 +01:00
Andy Babic 9fa2ba939d Release notes for 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 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. () 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 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 -- Fetch deferred stream fields from db () 2020-03-19 17:20:22 +00:00
Frantisek Holop fc0cf64ac6 Be more specific regarding the cached loader. ()
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 () 2020-03-19 16:50:55 +00:00
Michał (Quadric) Sieradzki 06fbde14b3 fix display issue on snippet edit view () 2020-03-19 16:44:34 +00:00