Wykres commitów

11773 Commity (f1175658bcfc35b92c4be6de042c7eb92ef5dc51)

Autor SHA1 Wiadomość Data
Coen van der Kamp f1175658bc Add release note about default Dutch (nl) 2021-10-01 13:19:39 +01:00
Coen van der Kamp 4c6da378e8 Drop nl_NL, Dutch translations are moved to nl on Transifex 2021-10-01 13:15:25 +01:00
LB Johnston a8636781b0 release notes for #7554 & #7545
- #7554 & #7545
2021-10-01 07:23:53 +10:00
Jochen Wersdörfer e7fe66a93e replaced removed .is_ajax method with request.headers.get('x-requested-with') == 'XMLHttpRequest'.
- https://docs.djangoproject.com/en/3.2/releases/3.1/#id2
> The HttpRequest.is_ajax() method is deprecated as it relied on a jQuery-specific way of signifying AJAX calls, while current usage tends to use the JavaScript Fetch API. Depending on your use case, you can either write your own AJAX detection method, or use the new HttpRequest.accepts() method if your code depends on the client Accept HTTP header.
2021-10-01 07:13:42 +10:00
Jochen Wersdörfer 7a0f3b3684 replaced removed urlquote function with quote from standard library
- https://docs.djangoproject.com/en/dev/releases/3.0/#id3
>  django.utils.http.urlquote(), urlquote_plus(), urlunquote(), and urlunquote_plus() are deprecated in favor of the functions that they’re aliases for: urllib.parse.quote(), quote_plus(), unquote(), and unquote_plus().
2021-10-01 07:13:42 +10:00
Daniel 381b11f54f Include custom permissions hook documentation 2021-10-01 06:52:43 +10:00
Matt Westcott 1b9dfc81ba Add section about CSV exports to security docs
Security researchers frequently report CSV formula injection as a security vulnerability in Wagtail, but that's the responsibility of the software consuming the CSV, not creating it. Hopefully this explanation will stop them from doing that (or at least give us a ready-made response to point at when they do).
2021-10-01 06:38:32 +10:00
Joe Howard 4ab7080fb8 Documentation - Remove ambiguity about ModelAdmin templates
- The modeladmin folder needs to be inside the templates folder of the relevant app.
- The way it was written makes it seem like /modeladmin/ should be placed in the project root directory.
2021-09-30 21:32:57 +10:00
JaneLiu 92381698d0 Add code example for `before_delete_page` hook 2021-09-30 21:15:33 +10:00
LB Johnston 42da0b1083 fix flake8 linting issue 2021-09-30 19:35:08 +10:00
Fabien Le Frapper cbd7b028d5 images - move shared file handling methods to mixins
- add ImageFileMixin to house contextmanager (file opening & willow image handling) + is_stored_locally method
- use mixin in AbstractImage & AbstractRendition
2021-09-30 19:11:37 +10:00
Matt Westcott 81f8f99215 Link to Github discussion boards 2021-09-30 19:00:18 +10:00
Kamil Marut 8d42bec5e6 Add "other permissions" to group permissions
- instead of a separate table containing all discrete permissions for each object, show these in the object's table
- Wagtail admin access will still show inside 'other permissions'
- resolves #5482
2021-09-30 18:54:46 +10:00
LB Johnston 1bfe22efcb changelog - fix duplicate name (typo) 2021-09-30 08:26:24 +10:00
Desaiakshata 997ac738b0 dropdown - improve focus and high contrast mode visibility
- Update _dropdown.legacy.scss
- improvement to existing styles for dropdown/up button on focus and windows high contrast mode
- see #7366
2021-09-30 08:12:00 +10:00
LB Johnston d6acc841b8 Include latest changes for hiding disabled workflow tasks
workflow - do not show disabled (not active) tasks in the task chooser modal

- fixes #7401
2021-09-29 12:35:33 -04:00
LB Johnston d6bb9bb5c0 workflow - do not show disabled (not active) tasks in the task chooser modal
- fixes #7401
2021-09-29 11:48:35 -04:00
Karl Hobley 607d356076 Changelog / release note for #7548 2021-09-29 12:02:59 +01:00
Mitchel Cabuloy d026632894
Add page synchronization to simple_translation 2021-09-29 11:43:45 +01:00
Stefan Hammer f533726de3 Add missing bind_to call to PreviewOnEdit
Added test for page preview with custom edit handlers
fixes #7537
2021-09-28 08:17:59 +10:00
Matt Westcott 3b972775fc Deprecate passing callables as log messages 2021-09-27 19:54:25 +01:00
Matt Westcott 9bd83fd0a3 Consistently use 'message' and 'comment' properties on BaseLogEntry
This avoids bouncing control between BaseLogEntry and LogRegistry, and saves report-side code from having to explicitly import the registry
2021-09-27 19:54:24 +01:00
Matt Westcott d84a967f17 Add LogFormatter classes to handle formatting log messages
This makes registering actions cleaner, and avoids having a bundle of different lookup tables within the log registry
2021-09-27 19:54:24 +01:00
Matt Westcott de549b4288 Register admin URL finder for site settings 2021-09-27 19:32:54 +01:00
Matt Westcott 5b48fed3d6 Register admin URL finder for users 2021-09-27 19:32:54 +01:00
Matt Westcott b292e44771 Register admin URL finders for generic model viewsets 2021-09-27 19:32:54 +01:00
Matt Westcott baeababe61 Register admin URL finder for search promotions 2021-09-27 19:32:53 +01:00
Matt Westcott 1a7e6e46b3 Register admin URL finder for redirects 2021-09-27 19:32:53 +01:00
Matt Westcott 1af986c49f Register admin URL finders for modeladmin 2021-09-27 19:32:53 +01:00
Matt Westcott d377ee4c54 Register admin URL finders for snippets 2021-09-27 19:32:53 +01:00
Matt Westcott eee75590fb Register admin URL finder for documents 2021-09-27 19:32:52 +01:00
Matt Westcott 52bf22b5dd Register admin URL finder for images 2021-09-27 19:32:52 +01:00
Matt Westcott 40707ec199 Implement AdminURLFinder 2021-09-27 19:32:52 +01:00
Matt Westcott 0380f01b24 Allow specifying a format for the label of a collapsed StructBlock
Currently, the label shown for a StructBlock's collapsed representation takes its content from the first sub-block of the StructBlock, which isn't always what you want. Add a new `label_format` meta option to StructBlock to allow customising this - e.g. `label_format = "Profile for {first_name} {surname}"`
2021-09-27 19:07:14 +01:00
Scott Cranfill 27c3e7921a Docs: Clarify Jinja2 template configuration
Emphasizing and clarifying some parts that are easy to overlook, based on a Slack support conversation.
2021-09-26 20:48:28 +10:00
Victor Miti f59658c6ca Adding Notifications docs - update sample code
Update sample code in the section
Extending Wagtail -> Adding new Task types -> Adding notifications

The previous example did not work because of changes in
`wagtail.admin.mail`

`EmailNotifier` doesn't exist, so we need to import
`EmailNotificationMixin` and `Notifier` instead, and
update `BaseUserApprovalTaskStateEmailNotifier`
accordingly
2021-09-26 20:46:29 +10:00
Victor Miti bb802509d2 Model Reference docs - correct field name
change `page revision` to `page_revision`
on the `TaskState` model
2021-09-26 20:46:29 +10:00
dependabot[bot] 4c3992bd47 Bump tmpl from 1.0.4 to 1.0.5
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-26 20:42:00 +10:00
Wout De Puysseleir 348aec32e5 Add TIDAL support to oembed
Adds TIDAL support for embedding playlists/tracks
2021-09-26 20:17:51 +10:00
Storm Heg 19ad01ddd5 Fix userbar tabbing behaviour
Tabbing (navigation using Tab or Shift + Tab keys) will now close
the menu and move to the next focusable element on the page instead
of focusing the next menu item.

The previous behaviour was a deviation from the ARIA menu practices:
https://w3c.github.io/aria-practices/#menu

Further changes / cleanup:

* Consume keyboard events like arrow down to prevent the browser
  from interpreting them.
* Refactor repeated setTimeout and `.focus()` calls into single
  `focusElement(el)` function. Let's keep it DRY!

Fixes #7290
2021-09-19 14:46:28 +10:00
Matt Westcott a96035a619 Refactor context setting to reduce duplication and remove unnecessary helper functions 2021-09-19 14:24:34 +10:00
Matt Westcott 107d1a8aeb On upload form validation error, only re-render the form rather than the whole modal 2021-09-19 14:24:34 +10:00
Matt Westcott d285fb1e16 Use form.serialize for posting the search form, and remove redundant currentTag variable 2021-09-19 14:24:34 +10:00
Matt Westcott f3bc528203 replace ajax_pagination_nav with pagination_nav 2021-09-19 14:24:34 +10:00
Matt Westcott cbad4fd94a Make the results-only version of the chooser a distinct view 2021-09-19 14:24:34 +10:00
Matt Westcott f10b6d8540 Split response rendering into its own method 2021-09-19 14:24:34 +10:00
Matt Westcott 33b9fec962 Convert image chooser to a class-based view 2021-09-19 14:24:34 +10:00
amychan331@yahoo.com 218e728f34 Make hamburger menu a button for tab accessibility
- Adding type to button element
- Co-authored-by: Dan Braghis <dan@zerolab.org>
- fixes #7327
2021-09-19 14:18:34 +10:00
Andrew Stone 55950a3586 Use date format from current locale for xlsx export 2021-09-19 13:57:29 +10:00
Karl Hobley b3c35e5f7f
Update Circle CI base image (#7518)
[...] CircleCI’s latest pre-built container images were designed from the ground up to help your team build more reliably. Our new images were built specifically for continuous integration projects and they are our most deterministic, performant, and efficient images yet.
2021-09-18 17:11:43 +01:00