0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

9745 Commits

Author SHA1 Message Date
danbentley
1156182283
Add Page.context_object_name (#5999)
Page.context_object_name can be used to define a more meaningful name
for the page variable in the template.

If defined, the default `page` and `self` are still available for use in
shared templates.

Resolves #5213
2020-05-01 20:01:02 +02:00
Jim Jazwiecki
6ea0cc52f3 Upgrade to Gulp v4 & Node 10
* Syntax changes to get Gulp working
* Require Node 10, use node 10 in CircleCI and squash.yml
* Update docs
* resolves #5653
2020-05-01 12:01:03 +10:00
François Poulain
55e65be079 allows unicode string in page copy form (#5991)
* resolve #5990
2020-04-29 18:28:56 +01:00
Matt Westcott
f4d47a88d0 Fix monospace quoting 2020-04-28 16:30:51 +01:00
Tomas Walch
9987c46647 Fix for Issue #5975: Adds "Cache-Control: private" in serve_preview to bypass caching. (#5986) 2020-04-28 16:28:39 +01:00
Tomas Walch
72ee81fbe5 Documentation: Adding Orderable superclass in code example in "Binding Pages to Snippets". If this is not included sorting in InlinePanel won't work so good to include it in documentation. 2020-04-28 16:21:36 +01:00
Chrisranjana.com
1f421e35f0 Add ability to sort search promotions on listing page
* resolves #3897
2020-04-28 20:44:54 +10:00
Andy Babic
3fe8775024 Add pre_page_move and post_page_move signals
* Documentation for pre_page_move and post_page_move signals
* Resolves #2728
2020-04-28 20:26:40 +10:00
Thibaud Colas
2af880025a
Revert "Add role="table" to TableBlock output" (#5977) 2020-04-28 09:02:38 +01:00
Haydn Greatnews
165c5c0ce5 Add date & datetime formatting to AbstractEmailForm + split out render_email method
* Rewrite AbstractEmailForm render to use cleaned_data
* Add date time formatting to AbstractEmailForm's render method according to Django settings SHORT_DATE_FORMAT and
SHORT_DATETIME_FORMAT
* Previously it was iterating over `form` which left no place to remove
data from the submission without removing the field from the form (which
is inadvisable, as discussed on #4313)
* Preserve order of fields in form emails using cleaned data
* Add a test for consistent date rendering in email forms
* update form customisation examples and add note about date / time formatting in email form usage (docs)
* resolves #3733
* resolves #4313
2020-04-26 20:25:48 +10:00
Ascani Carlo
5f3c12682f Redirect to previous url when deleting/copying/unpublish a page
* modify register_page_listing_buttons & register_page_listing_more_buttons to handle next_url kwarg
* resolves #3010
2020-04-26 18:24:13 +10:00
Karran Besen
7565248438 Add the ability to view users in a group
* adds users view to group view (users filtered by that group)
* adds the ability to go to the users list for the group currently being edited (via header link)
* fix issue where the link to add a new user (when no users found) was broken
* resolves #5801
2020-04-26 17:55:09 +10:00
Sylvain Fankhauser
2055da6a3a Fix code example in image file formats docs 2020-04-25 15:39:05 +10:00
Matt Westcott
ff47c58d65 Drop support for Python 3.5 2020-04-24 14:58:55 +01:00
Matt Westcott
5444b2663f Release note for #5959 2020-04-22 16:06:04 +01:00
Matt Westcott
3c9c75817d Add tests for filtered locked pages report 2020-04-22 15:33:16 +01:00
Karl Hobley
bef0525303 A few docstrings 2020-04-22 14:54:31 +01:00
Karl Hobley
260377d7b5 Add page live filter to locked pages report 2020-04-22 14:54:31 +01:00
Karl Hobley
a5cea048ff Implemented date range filter 2020-04-22 14:54:31 +01:00
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