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

2873 Commits

Author SHA1 Message Date
Andy Babic
4846a3e801 Add get_page_url() method to BaseSetting
* adds a convenience `page_url` shortcut to improve how page URLs can be accessed from site settings in Django templates
2020-05-03 15:14:41 +10:00
Jonatas Baldin
a7f58821a7 Add publish & unpublish page hooks
* Add `before_unpublish_page` and `before_unpublish_page` hooks
* Add `before_publish_page` and `before_publish_page` hooks
* Resolves #4590
2020-05-03 14:18:13 +10:00
Coen van der Kamp
b98e6d7549 Accept ipv6 as domain
* fixes #2375
2020-05-02 10:23:57 +10:00
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
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
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
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
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
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
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
Karl Hobley
9d4009bebb Changelog/release notes 2020-04-08 11:12:57 +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
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 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