Wykres commitów

9781 Commity (6194dcb74b71c5131a74ea81133fddccb95e8dcd)

Autor SHA1 Wiadomość Data
Lars van de Kerkhof 6194dcb74b Do not download entire search index on search terms with no hits
When a slice is specifically set to [0:0], which would yield an empty list,
instead wagtail will clear the slice, effectively downloading the entire search
index.

This scenario happens when a search term does not return any results.
So every time you enter a search term that has no results, the entire search
index is downloaded, you don't really feel it because wagtail only downloads
the pk values, and it is unlikely a site has millions of pages, but it is still
very inefficient and unwanted.
2020-05-15 11:45:54 +10:00
Coen van der Kamp 7253b2f6db Show userbar on moderation preview with approve and reject items
* Fixes #6008
* Regression from cbabc3d9c7
2020-05-15 11:30:42 +10:00
Kalob Taulien f757324039 Add Snippet hooks (after_edit_snippet, after_create_snippet and after_delete_snippet) 2020-05-14 20:47:36 +10:00
Cameron Lamb 55476426db Fix typo in ModelAdminGroup example 2020-05-14 20:37:34 +10:00
Robert Rollins 982b1d60a4 Page can_move permission method to ignore bulk_delete permission check
* bulk_delete exists to avoid allowing users to delete a whole lot of pages all at once by mistake, when they think they're just deleting one. However, the move/delete analogue breaks down when you're talking about moving an entire subtree, because you're *not* directly altering the children of the moved Page.
2020-05-10 21:12:24 +10:00
Brylie Christopher Oxley ff37ad6ab9 Add 'add_redirect' static method to Redirect
* This method was inspired by a Lacey Williams Henschel (@williln) presentation at Wagtail Space US 2018, called  'What the Wagtail docs don't tell you'. https://www.youtube.com/watch?v=PCkxBNXWM64&t=1220s
* Add docs section reference/contrib/redirects
2020-05-10 18:48:33 +10:00
Timothy Bautista ee99f91aa5 Add select_related to public_q query
* Prevents n+1 query count when getting a list of pages with view restrictions
* Add query count checks to public/not_public tests
2020-05-10 17:28:07 +10:00
Eric Phetteplace 20790f4c96 improve Adding Reports documentation
* `reverse` was used but not imported in the wagtail_hooks.py examples, causing them to be invalid
* I switched the Django `url` calls to use `path` instead since that seems both cleaner and officially recommended, the url function is "likely to be deprecated in a future release" per Django docs and  `path` is starting to replace it in urls.py files now
2020-05-10 17:15:32 +10:00
LB d88dae75ae Fix back tick usage in changelog/release notes 2020-05-10 17:11:36 +10:00
Neal Todd 2b35a852fe Add Rustface to the feature detection docs (images) 2020-05-10 17:09:33 +10:00
LB Johnston 8fc722a6f3 Add ability to define form_classname on ListBlock & StreamBlock
* resolves #4042
2020-05-10 16:48:24 +10:00
Coen van der Kamp 68b2dc01c2 Render user bar on non page views
* resolves #5565
2020-05-10 16:10:45 +10:00
jacobtoppm 30c398c91a Add purge_revisions management command
* Fix typo in publish_scheduled_pages dry run
* Add purge_revisions to docs
* Resolves #5192
2020-05-08 11:35:30 +10:00
Liam Mullens 52cb7ab77b Update ImageRendition field to return Image alt text
* Update ImageRendtion to use default_alt_text property of Image
* Update example in documentation
* Add a test for ImageRenditionField
* Resolves #5816
2020-05-08 11:22:49 +10:00
Meteor0id 829a9bbf06
Add ability to replace the default Wagtail logo in the userbar, via `branding_logo` block (#4731) 2020-05-08 00:11:05 +01:00
Thibaud Colas 90d606bcef
Fix gulp.dest path rewriter output from Gulp 4 upgrade (#6012) 2020-05-07 22:07:56 +01:00
Matt Westcott 6856b2aea2 Add missing doc link for 2.8.2 2020-05-07 21:46:34 +01:00
Matt Westcott 7b772aba81 Update note on ATOMIC_REBUILD to indicate that the problem is specific to 5.4.x - fixes #6003 2020-05-07 21:45:35 +01:00
Jérôme Lebleu f1dadba75a Remove FieldRowPanel top padding inside MultiFieldPanel
- fixes #5904
2020-05-07 22:55:25 +10:00
saeed 44c1f1cab2 Remove sticky footer on small devices 2020-05-07 22:55:25 +10:00
lukealhardwick 30a66638cb Add Reddit to oEmbed provider list
- Added endpoint for reddit comments to be embedded
2020-05-07 22:55:24 +10:00
Coen van der Kamp 758ebce865 Add ordering to Site
- Display domain names in switcher
- Ensure sorted values are shown in Site index view & Site switcher
2020-05-07 20:10:50 +10:00
Ramon de Jezus 85540283cf Fixed a typo 2020-05-06 15:29:12 +01:00
Matt Westcott 4717c2c1c4 Release note for CVE-2020-11037 in 2.9 2020-05-04 13:28:18 +01:00
Matt Westcott f26d8ee72a Release note for 2.8.2 2020-05-04 13:28:11 +01:00
Matt Westcott e6accccfff Release note for 2.7.3 2020-05-04 13:28:04 +01:00
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