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

9755 Commits

Author SHA1 Message Date
Matt Westcott
6d660b0c27 Use constant_time_compare for view restriction password checks 2020-05-04 13:26:53 +01:00
Matt Westcott
1ef36d0420 Fill in release date for 2.9 2020-05-04 11:35:15 +01:00
Matt Westcott
a159df380f Fetch new translations from Transifex 2020-05-04 11:34:27 +01:00
LB (Ben Johnston)
9359b14326
fix sphinx warnings (#6001)
- use .add_css_file instead of .add_stylesheet in conf.py
- use .add_js_file instead of .add_javascript in conf.py
- fix duplicate clss references in pages model reference (for grouping of methods & attributes)
- rename wagtailspace.js to banner.js (may be used in the future for a generic banner)
2020-05-03 14:02:43 +02:00
Rick van Hattem
40aedfc66b Show more granular error messages from Pillow (image uploads)
* Prevent `invalid_image` from hiding Pillow errors, instead rename key to `invalid_image_extension`
* Django already uses `invalid_image` - https://github.com/django/django/blob/stable/3.0.x/django/forms/fields.py#L639
* Add tests separate for images with invalid extensions vs non-images
2020-05-03 21:14:08 +10:00
LB (Ben Johnston)
f88bd4bc7f
Merge pull request #6002 from lb-/feature/docs-update-colour-and-wagtail-logo
Revise bg colour & wagtail icon hover styles in documentation
2020-05-03 19:45:54 +10:00
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
LB
053f258cc1 docs - revise teal colour + add hover logo animation
- background teal colour  to match latest Wagtail admin styles
2020-05-03 13:10:51 +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
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