0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 11:10:43 +01:00
Commit Graph

9726 Commits

Author SHA1 Message Date
Karl Hobley
5c5809fffc Put actions side by side 2020-04-22 14:54:31 +01:00
Karl Hobley
4643a5bd91 Make export work with filters 2020-04-22 14:54:31 +01:00
Karl Hobley
92c2cedb67 Implement filtering on reports 2020-04-22 14:54:31 +01:00
Karl Hobley
a11de58a63 Add dependency on django-filter 2020-04-22 14:54:30 +01:00
Matt Westcott
3cfc56c428 Rotate deprecation warning classes 2020-04-22 13:54:09 +01:00
Matt Westcott
21ffe27db7 Remove deprecated API endpoint modules and get_document_model alias 2020-04-22 13:54:09 +01:00
Matt Westcott
ceb4270e01 Remove versionadded/versionchanged notes for 2.8 2020-04-22 13:54:09 +01:00
Matt Westcott
4ba901691b Add changelog / release notes for 2.10 2020-04-22 13:54:09 +01:00
Matt Westcott
c54c15ee42 Version bump to start work on 2.10 2020-04-22 13:54:09 +01:00
Tomasz Knapik
f5b29b3a5e
Improve Dockerfile in the new project template (#5800)
* Improve Dockerfile in project template

This reorganises Dockerfile to make it adhere to more common-sense rules,
while not being too opinionated on the deployment process.

* Add dockerignore file

* Make Dockerfile comments nicer

* Delete dockerignore created in a wrong path

* Add the right dockerignore files

* Use slim buster Docker image

* Add sqlite3 files to dockerignore

* Fix Docker image name
2020-04-22 11:17:35 +01:00
Matt Westcott
61e48078ab Return 403 error on preview endpoints when no preview_modes exist 2020-04-21 14:59:56 +01:00
Matt Westcott
b8165b81af Add tests for hiding preview buttons 2020-04-21 14:59:56 +01:00
Matt Westcott
f1a1790be7 Hide preview / view draft buttons throughout admin UI when preview_modes is empty
Ref: https://github.com/wagtail/wagtail/issues/5670#issuecomment-615836390
Add an `is_previewable` method to Page (which accounts for being called either on the base Page model or the specific subclass, as either may be in use on listing pages that display these buttons), and check this when rendering buttons.

Additionally, fix the 'pages for moderation' panel to check that revision.user is defined before trying to output a username - this field is intentionally nullable to allow for scripted processes. Without this check, under normal template-rendering rules the whole panel is liable to be silently dropped.
2020-04-21 14:59:56 +01:00
Matt Westcott
928e79ed3a Set date/time fields to autocomplete="off"
Ref #5528; fixes #5352. As of Chrome 81, autocomplete="off" seems to be a better bet for preventing unwanted autocompletion dropdowns, rather than autocomplete="some-unrecognised-string".
2020-04-21 14:58:59 +01:00
Matt Westcott
db34788397 Generate new strings for translation 2020-04-21 14:58:33 +01:00
Matt Westcott
42a5027dcf Update translator credits 2020-04-21 14:58:33 +01:00
Matt Westcott
d2a9dcd42a Fetch new translations from Transifex 2020-04-21 14:58:33 +01:00
Matt Westcott
f06270345f Fix incorrect language code for Japanese in language choice dropdown
Fixes #5925
2020-04-21 13:56:55 +01:00
LB
78e3c5964d Docs & readme - remove references to now closed developers forum
- remove references to https://groups.google.com/forum/#!forum/wagtail-developers
- add references to the Wagtail slack workspace
2020-04-20 16:27:14 +01:00
Andy Babic
1f2b6fb449 Consistently return TemplateResponse from views instead of using the render() shortcut (#5731) 2020-04-20 13:33:04 +01:00
jacobtoppm
df8e51a6e9 Fix user preferred language override not working with TemplateResponses by decorating TemplateResponse render method (#5910) 2020-04-20 12:23:47 +01:00
Matt Westcott
58b11833c8 Add placeholder docs for internationalisation 2020-04-20 21:04:00 +10:00
Matt Westcott
4a0d202fc7 Release note for #5927 2020-04-20 11:56:09 +01:00
nmorduch
7cca89f67c Make only the list part of the nav submenu scroll
- Fixes #5358
- Make classes on the nav submenu adhere to BEM a little better
- Make nav submenu footer match the styles of the things around it a little better (other submenu items on mobile, and the other menu footer on larger screens)
2020-04-20 11:16:31 +01:00
nmorduch
2b4103728b Move and rename nav variables
- Move to variables file
- Rename to be more specific
2020-04-20 11:16:30 +01:00
Matt Westcott
4023a90d6e Allow custom image model to have fields defined as required
If validation rules prevent the multiple image upload view from
creating Image objects from just the image file, an UploadedImage object is
created instead, and turned into an image once the form is filled in.

* Fixes #847
* Add UploadedImage model and related views
* Update custom image model docs
2020-04-20 14:46:24 +10:00
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 #5099
- 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 (#5938)
Fixes wagtail/wagtail#5937

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 (#5831)
Based on our recent discussion in Slack. See #5821 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 (#4883) 2020-04-07 14:05:27 +01:00