FatGuyy
09c125189d
Fix NameEmailSettingsPanel when WAGTAIL_EMAIL_MANAGEMENT_ENABLED = False
...
Ensure the panel title reflects the content inside (with or without email)
Fixes #10937
2023-10-02 09:08:20 +11:00
LB Johnston
a986ba741a
Add changelog for #10971
...
Closes #10970
2023-10-02 08:49:44 +11:00
Sage Abdullah
ec17f274a0
Remove unused legacy userbar views
2023-10-02 08:49:44 +11:00
Sage Abdullah
5c0a65e062
Change page-specific userbar tests to not rely on legacy userbar view
...
Change it to use the Page.serve() method directly, and check that the
expected content is in the rendered template response.
2023-10-02 08:49:44 +11:00
rohitsrma
71fa04fec3
Ensure label in SetActiveStateBulkAction can be translated
...
Fixes #10963
2023-10-02 08:30:10 +11:00
Sandra Ashipala
8b52670d10
Docs - Fix typo for migration command in the section under Tag posts
...
Fixes #10974
2023-10-02 08:29:54 +11:00
Matt Westcott
a1bd357092
Fix port number in tutorial
2023-09-29 16:41:14 +10:00
Nick Moreton
f58c896d5a
Add PythonAnywhere deployment tutorial to third party tutorials ( #10958 )
2023-09-28 09:52:04 +01:00
Matt Westcott
dc9f1b190b
Release note for #10955 in 4.1.8
2023-09-27 18:54:23 +01:00
Sage Abdullah
5cf0b26343
Add test settings shims for DEFAULT_FILE_STORAGE and STATICFILES_STORAGE
2023-09-27 16:59:01 +01:00
Sage Abdullah
341d68c0b1
Use provisional django-taggit branch to test against Django main
...
Use own fork instead of their branch to ease updates later, in case
additional fixes are needed.
2023-09-27 16:59:01 +01:00
Sage Abdullah
ab7ba231ee
Use django.core.files.storage.storages in favour of get_storage_class()
2023-09-27 16:59:01 +01:00
Matt Westcott
5931a07b25
Update latest.txt for 4.1.7 release
2023-09-27 14:29:26 +01:00
Matt Westcott
b991700932
fix typo in 4.1.7 release notes header
2023-09-27 14:11:49 +01:00
Matt Westcott
983b0fcc23
Release note for #10951 in 4.1.7
2023-09-27 13:18:03 +01:00
LB Johnston
a50cc707a2
Deprecate escape_script & escapescript template tag
...
- Add deprecation warning for usage of escape_script
- Add release considerations
- JS deprecation comments on client/src/components/InlinePanel/index.js were added in changes introduced in #10893
2023-09-26 10:32:28 +01:00
TopDevPros
3ffe4cb3a5
Add subject & body to Email link chooser
...
Closes #5950
Rework of PR #6451
2023-09-26 16:09:24 +10:00
TopDevPros
3a5cc8e75c
Search Promotions - Add support for external link/text
...
Closes #10725
Built on original PR #4560
2023-09-26 13:44:09 +10:00
LB Johnston
aa52f84ec4
Fix heading level in 5.1 release notes
2023-09-26 05:20:25 +10:00
Matt Westcott
1321c5c643
Update latest.txt with 5.1.2 release
2023-09-25 14:38:35 +01:00
Matt Westcott
34dd5270a3
Fill in release date for 5.1.2
2023-09-25 12:45:09 +01:00
Matt Westcott
9ff3647a37
Fill in release date for 5.0.3
2023-09-25 12:44:35 +01:00
Matt Westcott
6b72608698
Fetch new translations from Transifex
2023-09-25 12:44:25 +01:00
Matt Westcott
85a4a9ebf7
Release note for #10939 in 5.1.2
2023-09-22 18:34:32 +01:00
Matt Westcott
02a08ff2be
Allow BaseSiteSetting instances retrieved via for_request to be pickled
...
Strip out the cached _request attribute which breaks pickling. Fixes #10879
2023-09-22 18:32:01 +01:00
Matt Westcott
e6e29b5518
Release note for #10935
2023-09-22 11:46:21 +01:00
Matt Westcott
240b65f309
Use more concise code for appending to classname
2023-09-22 11:44:24 +01:00
Matt Westcott
981ca512e5
Move 'sort menu order' URL logic to PageListingSortMenuOrderButton
2023-09-22 11:44:24 +01:00
Matt Westcott
f1ef9bd22c
Move show-or-not tests into the button classes
2023-09-22 11:44:24 +01:00
Matt Westcott
7111e1ea85
Move the 'should I add a next parameter to the delete action' logic into PageListingDeleteButton
2023-09-22 11:44:24 +01:00
Matt Westcott
7e3cf66071
Allow settting attrs at the class level
2023-09-22 11:44:24 +01:00
Matt Westcott
6e7eaea08b
Render all of self.attrs in the dropdown item rendering of a button, not just aria-label
...
This is needed to correctly pass the `rel="noreferrer"` attribute for the view-draft and view-live actions.
2023-09-22 11:44:24 +01:00
Matt Westcott
3dbff3b6a5
Allow specifying a url_name at the class level
2023-09-22 11:44:24 +01:00
Matt Westcott
2c66d58620
Support setting aria-label format at the class level
2023-09-22 11:44:24 +01:00
Matt Westcott
c05c2ccb6e
Create button subclasses for page listing buttons
2023-09-22 11:44:24 +01:00
Matt Westcott
e195b01502
Allow setting label and icon_name at the class level rather than just the constructor
2023-09-22 11:44:24 +01:00
Matt Westcott
45beb8ce56
Use PageListingButton for all buttons registered for page listings
...
This will allow us to do some cleverer refactoring shortly.
2023-09-22 11:44:24 +01:00
Matt Westcott
ba1870be3a
Do not pass on classname to buttons rendered via _dropdown_items.html
...
There are no useful classnames available for dropdown items, and not passing this on means that we can use ListingButton instances here without the standard button styles interfering with the rendering.
2023-09-22 11:44:24 +01:00
Matt Westcott
f3adefe362
Replace 'classes' argument with a 'classname' string
...
as per https://docs.wagtail.org/en/stable/contributing/general_guidelines.html#use-classname-in-python-html-template-tag-variables
2023-09-22 11:44:24 +01:00
Matt Westcott
26c2e686f1
make the code for joining a list of classnames with spaces a bit less enterprisey
2023-09-22 11:44:24 +01:00
Matt Westcott
276d0c1a2b
Remove unnecessary test on len(bulk_actions_list)
2023-09-22 11:44:24 +01:00
Matt Westcott
c9edee3894
Remove button_classes kwarg from ButtonWithDropdown
...
It does exactly the same thing as the existing `classes` kwarg.
2023-09-22 11:44:24 +01:00
Matt Westcott
eb44925c58
Convert buttons to components
2023-09-22 11:44:24 +01:00
Matt Westcott
f27aecc465
Eliminate unnecessary context variables from _page_header_buttons.html
...
It's only used in this one place, so things like classnames can be hard-coded instead of passing them as variables.
2023-09-22 11:44:24 +01:00
Matt Westcott
c7005b944f
Remove redundant |safe
filter
...
All button classes defined in wagtail.admin.widgets.button use either format_html or render_to_string, which mark their results as safe. And if you pass some other object as part of the buttons list that isn't as well-behaved, it's probably about time you fixed that...
2023-09-22 11:44:24 +01:00
Matt Westcott
eaaf450c14
drop buttons_data argument from ButtonWithDropdown in favour of passing Button instances
...
If Button instances are going to be our standard mechanism for passing the bundle of properties for a menu item, we don't need to invent another one.
2023-09-22 11:44:24 +01:00
SebCorbin
0ab4bb8db5
Make admin login template display non_fields_errors
...
- Add tests
- Fixes #10912
2023-09-22 07:27:24 +10:00
Matt Westcott
689c7dcbd8
Update linter versions in package.json, setup.py and pre-commit hooks
2023-09-21 17:25:08 +01:00
Andreas Nüßlein
6eda5d5d12
fix typo
2023-09-21 16:45:57 +01:00
Sage Abdullah
faaab535b0
Release notes for #10900
2023-09-21 12:21:39 +01:00