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

14763 Commits

Author SHA1 Message Date
Matt Westcott
a07fe20ceb Add documentation for customising StreamField validation 2023-03-01 12:07:13 +01:00
Matt Westcott
eadfe419fe Make StructBlockValidationError importable from wagtail.blocks 2023-03-01 11:53:50 +01:00
Matt Westcott
a98779e734 Make TypedTableBlockValidationError constructor more permissive
Either of cell_errors or non_block_errors can now be omitted, and non_block_errors accepts a plain list of ValidationErrors as well as an ErrorList.
2023-03-01 11:48:29 +01:00
Matt Westcott
e9e401b891 Make StreamBlockValidationError constructor more permissive
Either of block_errors or non_block_errors can be omitted; non_block_errors can be passed as a plain list rather than an ErrorList; and the values in block_errors can be ValidationError instances or singleton lists, not just singleton ErrorLists.
2023-03-01 11:48:29 +01:00
Matt Westcott
d262291b6e Make StructBlockValidationError constructor more permissive
Refactor it to allow either of block_errors or non_block_errors to be omitted; allow non_block_errors to be passed as a plain list rather than an ErrorList; and allow the items of block_errors to be ValidationError instances or singleton lists rather than just singleton ErrorLists.
2023-03-01 11:48:29 +01:00
Matt Westcott
486a49797b Refactor ListBlockValidationError to use a dict for block_errors 2023-03-01 11:47:18 +01:00
Sage Abdullah
4956e9554c
Release notes for #9946 2023-03-01 09:23:40 +00:00
Sage Abdullah
fb6d3262ad
Allow manual lock even if WorkflowLock is currently applied 2023-03-01 09:20:40 +00:00
Sage Abdullah
9ea12d42b4
Rework how lock information is displayed in status side panel 2023-03-01 09:16:08 +00:00
Sage Abdullah
2b0bdd66ff
Extract get_user_display_name() from template tag
This allows us to use the function in modules that are imported by wagtailadmin_tags (either directly or indirectly) without triggering a circular import.
2023-03-01 09:11:37 +00:00
Sage Abdullah
d8d7710d39
Remove page-specific strings in lock objects and status template 2023-03-01 09:11:37 +00:00
Sage Abdullah
f3f45a9860
Fix page/snippet cannot proceed a GroupApprovalTask if it's locked by someone outside of the group
Regression in d85db866cc
2023-02-28 13:22:06 +00:00
4the4ryushin
9537547b46 Migrate initErrorDetection to a Stimulus Controller w-count
- Used for tabs error counts
- Fixes #10090
2023-02-27 23:11:19 +10:00
LB Johnston
845b731d13 Add release notes & upgrade considerations for #7277
- Relates to #8012
2023-02-26 12:59:18 +10:00
Karl Hobley
6ee7746b43 Add management command for copying old Query/QueryDailyHits records 2023-02-26 12:59:18 +10:00
Karl Hobley
16da7828af Add deprecation warning for wagtailsearch.Query.add_hit 2023-02-26 12:59:18 +10:00
Karl Hobley
2817fec9fc Move QueryForm into searchpromotions 2023-02-26 12:59:18 +10:00
Karl Hobley
751032a16d Switch to new Query model 2023-02-26 12:59:18 +10:00
Karl Hobley
9be0827f7f Add migration to copy queries from search to searchpromotions 2023-02-26 12:59:18 +10:00
Karl Hobley
2566f0431d Add Query/QueryDailyHits models into search promotions 2023-02-26 12:59:18 +10:00
LB Johnston
ef438ae3c0 Add GitHub FUNDING with custom link for Wagtail sponsorship 2023-02-25 17:12:09 +10:00
jatinkumar001
b87f71ca38 Update privacy collection switch button
- The status tag styles did not actually change when the permissions changed
- Instead of trying to treat the status tag as a button, use an actual button styling as this pattern is not used anywhere else in Wagtail
- Fixes #10128
2023-02-25 08:10:43 +10:00
4the4ryushin
fd73fc2905 Use shared header template in ModelAdmin index
- Closes #8907
2023-02-24 17:38:33 +10:00
Christopher Wardle
5f6f640d0d
Documentation: Adding return statement to process_form_submission (#10143)
* Adding missing return statement to FormPage.process_form_submission in the "Custom form submission model" example to make it available to FormPage.render_landing_page, among other methods.
2023-02-24 07:52:14 +10:00
Matt Westcott
c66b86b756 Move repeated error message handling code into an include 2023-02-23 11:47:34 +00:00
Matt Westcott
ff70382ebb Remove obsolete client-side BlockValidationError classes and telepath adapters 2023-02-23 11:47:34 +00:00
Matt Westcott
61dd1abba3 Update client-side block code to accept simplified JSON error structures
All setError methods now accept an instance of the error dict returned by get_error_json_data. Since this is consistent across all ValidationError subclasses, there is no longer any need for the exception type to match the block type (unless you care about propagating child block errors).

Fixes #5663
2023-02-23 11:47:34 +00:00
Matt Westcott
664901dc1c Implement a common JSON format for block validation errors 2023-02-23 11:47:34 +00:00
Matt Westcott
968b86287b Allow StructBlock to have non-block validation errors
Part of #7250. Documentation to follow when the rest of the updates are in place.
2023-02-23 11:47:34 +00:00
Sage Abdullah
dfa01e50c3
Add contributor for #10081 2023-02-23 11:29:12 +00:00
Himanshu Garg
2ae061a703
Add curlylint and update djhtml, semgrep versions in pre-commit config
The djhtml and semgrep versions are now in sync with the ones in setup.py
2023-02-23 11:24:50 +00:00
Matt Westcott
dc2afe89b9 Specify that h1, h5, h6 are disabled in rich text by default
Fixes #10124
2023-02-22 08:48:02 +00:00
Matt Westcott
55fcace173 Release note for #10130 in 4.1.3 2023-02-21 17:47:53 +00:00
Matt Westcott
0dd7dfedeb Release note for #10130 in 4.2.1 2023-02-21 17:47:06 +00:00
Matt Westcott
517b59c736 Release note for #10130 in 5.0 2023-02-21 17:42:40 +00:00
Andy Chosak
8d1835f55c Fix audit log display of deleted models
The audit log report currently raises an unhandled exception if it
tries to display log entries for model instances where the model was
deleted after the log entry was made. This commit fixes that bug.

If the model was deleted via a migration but the content type still
exists in the database (a "stale content type" in Django parlance),
the report will now display a capitalized version of the content type's
"name" field, for example "Homepage" for the HomePage model.

If the content type has also been deleted (likely via Django's
remove_stale_contenttypes management command), the report will now
display the phrase "Unknown content type".

Fixes issue 8699.
2023-02-21 17:40:49 +00:00
4the4ryushin
93077eaccd Migrate status tag usage to shared Template tag
* Style guide updated tests added
* Added story for status tag and put pageurl tag in use for page_status_tag
* Allow for url/non-url variant & attrs to be passed through to root element
* Closes #8656
2023-02-21 22:30:18 +10:00
LB Johnston
d5eb255320 Add changelog for #9934 / #7756
- Closes #7160
- Add additional test coverage
2023-02-21 21:48:38 +10:00
4the4ryushin
12dff30a9e Move collection_id from index view to add view in doc/image upload
- Ensure query string is correctly used for any future scope
- Closes #7160
2023-02-21 21:48:38 +10:00
Bojan Mihelac
c89ab4d341 Respect selected collection when adding documents or images
- Relates to #7160
- Original PR #7756
2023-02-21 21:48:38 +10:00
Lovelyfin00
2a9d01b849 Migrate initSlugCleaning to Stimulus SlugController
- Closes #10086
2023-02-21 08:57:20 +10:00
LB Johnston
469f3ee1d2 Documentation - remove legacy docs references
- Permissions/commenting links no longer exist in the documentation and have moved to the user guide
- As these are quite old releases now, remove the references to avoid build errors in docs
2023-02-19 16:01:38 +10:00
Julian Bigler
8be4722458 Add release notes & contributors #9813 2023-02-19 14:39:06 +10:00
LB Johnston
7cbd20de76 Add contributor - #10115 2023-02-19 14:39:01 +10:00
Kenny Wolf
f50f04e129
Docs - Remove deprecated Settings Tab from documentation (#9813)
Since Wagtail 4.1 the Settings Tab and the corresponding scheduling of pages has been moved to the Status side panels. As mentioned in the release notes of Wagtail 4.1: [See here](https://docs.wagtail.org/en/stable/releases/4.1.html#new-ui-for-scheduled-publishing).

In the documentation section for customising the edit interface, this snippet is still available. When implemented, there is no effect and no error is shown.

Therefore this line is obsolete and only the two tabs 'Content' and 'Promote' should be available.

Co-authored-by: Julian Bigler <disperate@users.noreply.github.com>
2023-02-19 14:32:13 +10:00
Suyash Srivastava
98de22a412
Update package-lock.json file and resolved Caniuse-lite version (#10115)
Caniuse-lite  "version": "1.0.30001373" updated to  "version": "1.0.30001456",
Closes #10114
2023-02-19 14:18:10 +10:00
LB Johnston
8c006a16c9 Minor clean up items on ProgressController
- Relates to #10062
2023-02-17 13:40:35 +10:00
Thibaud Colas
4bea98d981 Convert userbar implementation to TypeScript 2023-02-17 01:13:51 +00:00
Albina Starykova
71cbf9087a Rename userbar.js to userbar.ts 2023-02-17 01:13:51 +00:00
Fabien Le Frapper
065df6064a
Remove unneeded float styles on 404 page (#8914)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-02-17 00:06:57 +00:00