jacobtoppm
c654f0d71a
Fix bulletpoint formatting, and update outdated information, particularly around available page statuses and the headings on the workflow edit view
2020-08-07 17:10:27 +01:00
jacobtoppm
5d8caaf096
Update editor manual images where they show the old edit/workflow admin views before revamp
2020-08-07 17:10:26 +01:00
jacobtoppm
e85f16b500
Add a use case example for WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH=False
2020-08-07 17:10:24 +01:00
jacobtoppm
b10b24a7b6
Update descriptions of the editing interface and workflow management for consistency. Note that screenshots are not yet updated
2020-08-07 17:10:23 +01:00
Karl Hobley
de6d14a667
Release notes for #6267 and #6268
2020-08-07 15:51:09 +01:00
Karl Hobley
9ad14ea439
Add hooks for snippet listing buttons
2020-08-07 15:47:27 +01:00
Karl Hobley
9b02147d3e
Add hooks.register_temporarily for testing hooks
...
There's currently a number of places where we test hooks by registering
hook functions from test methods. These are never cleaned up so that
hook remains registered in future tests. This can cause issues with
tests not working consistently when you run a subset of the tests.
This adds a `register_temporarily` function to the hooks module. This
function can be used either as a decorator or a context manager. It'll
always remove the hook after the decorated function or with block exits,
even if it exits through an exception.
2020-08-07 15:47:04 +01:00
Matt Westcott
ba16b4125d
Release note for Django 3.1 support
2020-08-06 11:26:39 +01:00
Matt Westcott
f804eba423
Formalise Django 3.1 support
...
Conflicts:
wagtail/project_template/requirements.txt
2020-08-06 11:26:26 +01:00
Matt Westcott
dc2b4a5877
Add release note about populating form builder clean_name
...
Ref: #6093
2020-08-04 17:59:35 +01:00
Karl Hobley
cb4f98b5f1
Release note for #6290
2020-08-04 16:03:15 +01:00
Kalob Taulien
d2e196b0c5
Add wagtail --version
2020-08-03 07:21:48 -06:00
Jesse Menn
b934194622
Make page-level actions accessible to keyboard users in page listing tables ( #6280 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-08-01 21:52:28 +01:00
Karl Hobley
4bf28b502c
Fix docs for construct_page_listing_buttons
2020-07-31 11:14:48 +01:00
Karl Hobley
f3f932d2e5
Add before_{create,edit,delete}_snippet hooks
2020-07-30 08:08:40 +01:00
Matt Westcott
e0dc53d9ad
Remove versionadded/versionchanged notes for 2.9
2020-07-28 12:53:22 +01:00
Matt Westcott
48dee654b4
Move SiteMiddleware to wagtail.contrib.legacy
2020-07-28 12:53:22 +01:00
Matt Westcott
7451500054
Add release note sections for 2.11
2020-07-28 12:53:22 +01:00
Chris Contolini
4231d9ef11
Fix minor typo in TableBlock docs ( #6259 )
...
Also a small grammatical fix.
2020-07-28 07:14:05 -04:00
Matt Westcott
622d439e6d
Release note for workflow
2020-07-24 17:11:08 +01:00
Matt Westcott
d3f7ffa369
Add a variant of WorkflowAction that just collects, validates and returns form data so that the action can be performed separately
2020-07-24 16:59:33 +01:00
jacobtoppm
c79668929e
Update reference documentation, custom task guide, and release notes, and fix documentation build errors
2020-07-24 16:59:33 +01:00
jacobtoppm
85e4426948
Cancel ongoing workflows when a page is published, depending on the value of a new setting, WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH. Add a warning modal before publication if a workflow will be cancelled
2020-07-24 16:59:33 +01:00
Matt Westcott
bf53123309
Fix sphinx warnings from workflow / audit log documentation
2020-07-24 16:59:33 +01:00
Matt Westcott
6f85bca664
Use % formatting for new workflow / audit log translation strings
...
See #5548 - Transifex recognises % formatting, and will guard against translators introducing errors by attempting to translate the embedded variable names.
2020-07-24 16:59:33 +01:00
Matt Westcott
c8a8689cee
Document icon_name and classname for register_page_action_menu_item
2020-07-24 16:59:33 +01:00
Matt Westcott
ace3e1bf99
Release note for prepopulating site history logs
2020-07-24 16:59:33 +01:00
Dan Braghis
92e7330180
Update docs with current log actions and the rule of thumb for logging
2020-07-24 16:59:33 +01:00
Dan Braghis
f69287f6f4
Add documentation
2020-07-24 16:59:33 +01:00
Dan Braghis
fb0742802f
Include task description in choosers, if defined ( #6200 )
2020-07-24 16:59:33 +01:00
Karl Hobley
edfd17a1f1
Reduce usage of edit handlers for workflow management ( #6172 )
...
* Use plain old Django forms for tasks
* Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one"
This reverts commit 62961b74bb
.
* Move Workflow edit handler creation into Workflow forms
Only advantage of having it the way it was before is that allows
overriding the edit handler in subclasses. But nobody will be doing this
with workflows.
I've added a note into the code pointing out that we might want to
rethink using edit handlers if:
- It gets easier to style formsets without using InlinePanel
- We want to allow customisation of the form (the use of edit handlers
should be considered an internal implementation detail at the moment)
* Make task name readonly but groups editable
* Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Update wagtail/admin/forms/workflows.py
Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Dan Braghis <dan@zerolab.org>
2020-07-24 16:59:33 +01:00
Dan Braghis
0f58bd241a
Move workflow upgrade considerations to 2.10
2020-07-24 16:59:33 +01:00
jacobtoppm
5f2dbc3ce6
Rephrase upgrade considerations note about moderation per page vs per revision
2020-07-24 16:59:33 +01:00
jacobtoppm
df3a63c7a2
Add new page methods and updated workflow state methods
2020-07-24 16:59:33 +01:00
jacobtoppm
2dbd4f8138
Fix dashboard docs
2020-07-24 16:59:33 +01:00
jacobtoppm
8148c79c28
Fix update considerations formatting and link to admin management guide
2020-07-24 16:59:33 +01:00
jacobtoppm
2037e8c089
Update images in documentation
2020-07-24 16:59:33 +01:00
jacobtoppm
dde1507da1
Fix typos
2020-07-24 16:59:33 +01:00
jacobtoppm
16966b195b
Add example of field belonging on custom TaskState, and fix typos
2020-07-24 16:59:33 +01:00
jacobtoppm
d14563dfd5
Remove version reference
2020-07-24 16:59:33 +01:00
jacobtoppm
8911bd30d7
Add workflow models to reference
2020-07-24 16:59:33 +01:00
jacobtoppm
832e0be8e0
Add task_state_class specification for custom tasks to docs
2020-07-24 16:59:33 +01:00
jacobtoppm
bf168df9f9
Document workflow signals
2020-07-24 16:59:33 +01:00
jacobtoppm
c75a2a3549
Add workflow settings
2020-07-24 16:59:33 +01:00
jacobtoppm
364365b839
Start admin workflow management guide
2020-07-24 16:59:33 +01:00
jacobtoppm
80506cd2f5
Update info on publish permissions to match new workflow system
2020-07-24 16:59:33 +01:00
jacobtoppm
031a682f96
Update editor manual moderation references, and add info on new dashboard panels for workflow, including a new screenshot
2020-07-24 16:59:33 +01:00
jacobtoppm
4787e9e053
Add workflow upgrade considerations
2020-07-24 16:59:33 +01:00
jacobtoppm
b508001336
Add developer guide to new Task types
2020-07-24 16:59:33 +01:00
jacobtoppm
b8c70163ca
Add custom_tasks.rst
2020-07-24 16:59:33 +01:00
Thibaud Colas
d97f940e58
Release notes for #5885
2020-07-23 13:56:12 +01:00
Matt Westcott
b8848ae2f5
Release note for #6250
2020-07-22 17:44:52 +01:00
Thibaud Colas
28b117a6bf
Add separate "accessibility and usability" section to 2.10 release notes ( #6252 )
2020-07-22 13:52:28 +01:00
LB (Ben Johnston)
1b3d190b3f
Fix group permission checkboxes not being clickable in IE11. Fix #5903 ( #6115 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 22:24:14 +01:00
LB (Ben Johnston)
45ec139bc5
Hide snippets’ bulk delete for screen reader users as well ( #6116 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 21:06:45 +01:00
Andreas Bernacca
f9c5bab9cb
Add chevron to dropdowns that are missing them, and make "Site" label translateable ( #6242 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 20:13:25 +01:00
Martin Coote
9f0dcf0097
Add skip link for keyboard users. Fix #5406 ( #5780 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-21 18:16:36 +01:00
Matt Westcott
b98d724def
add link to 2.9.3 release notes
2020-07-20 10:38:39 +01:00
Matt Westcott
5714c2f71d
Release note for 2.9.3
2020-07-20 10:38:07 +01:00
Matt Westcott
457643e686
Release note for 2.7.4
2020-07-20 10:37:13 +01:00
Matt Westcott
e8d02091ee
Add warning about WAGTAILFORMS_HELP_TEXT_ALLOW_HTML
2020-07-20 10:36:41 +01:00
Matt Westcott
d9a41e7f24
Escape help text in form builder forms by default
...
This can be disabled with the setting WAGTAILFORMS_HELP_TEXT_ALLOW_HTML
2020-07-20 10:36:28 +01:00
FreshPass
b59a737930
Update third_party_tutorials.rst
...
Fixing a 404 on the rosederwelt.com Deploying my Wagtail blog to Digital Ocean, pt. 1
2020-07-17 10:57:48 +01:00
LB (Ben Johnston)
e097cfaab2
Changelog update for #6151 & #6189
2020-07-16 16:20:44 +10:00
Matt Westcott
78c9ef31d7
Typo fixes
2020-07-15 17:18:46 +01:00
Martin Sandström
c8f493c095
Add documentation for WAGTAIL_REDIRECTS_FILE_STORAGE setting ( #6114 )
2020-07-15 16:35:04 +01:00
Matt Westcott
1ed501e5af
Sanitise window.location.hash when passing to jquery for tab handling ( #6155 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-07-15 16:20:39 +01:00
Matt Westcott
9917d7d2e9
Additional documentation for next_url
2020-07-15 11:53:39 +10:00
Kevin
d75ab584c7
Fixing typos
2020-07-14 10:56:28 +01:00
Matt Westcott
ee954b8fe6
Release note for #5240
2020-07-13 18:32:01 +01:00
Andy Babic
dd680ae4d4
Factor out content type fetching into a separate Page method, simplify the specific specific_class methods, and improve docstrings
2020-07-13 18:25:11 +01:00
Steven Wood
5611f5ef6c
Clarify origin of From address used in password reset emails ( #6219 )
2020-07-13 18:15:21 +01:00
LB Johnston
450f1bef34
add upgrade considerations for hooks function signature changes
2020-07-13 16:06:09 +01:00
Matt Westcott
0546237a15
Release note for #6093
2020-07-13 14:03:18 +01:00
Storm Heg
8c306910dd
Fix incorrect urls in the docs
2020-07-06 13:15:40 +01:00
Storm Heg
98c66359a8
Replace a few instances of re_path with path
2020-07-06 13:15:39 +01:00
Storm Heg
4076b9ef5e
Replace calls to django.conf.urls.url with django.urls.path or django.urls.re_path
2020-07-06 13:15:37 +01:00
Matt Westcott
34785b9085
Release note for #6196
2020-07-03 19:19:41 +01:00
Matt Westcott
8b1699437f
Release notes for 2.9.2
2020-07-03 12:58:19 +01:00
Maxxen
4afdbdea56
added maxNumChildBlocks property and callbacks to disable adding/removing child blocks to sequence. Also made streamfield add-buttons dissapear when capacity is reached ( #6070 )
2020-06-30 15:02:16 +01:00
Matt Westcott
ccbbe8b8ee
Release note for #6183 in 2.10
2020-06-30 14:25:30 +01:00
Andy Babic
58741d3989
Update Page.objects.specific() to warn instead of erroring when pages of the specific type cannot be found ( #5928 )
2020-06-30 14:23:25 +01:00
Matt Westcott
98301fe736
Release note for #6183 in 2.9.1
2020-06-30 11:49:55 +01:00
Seb
b9347ee970
Add ability to extend EditHandler without a children attribute
...
- Only run checks on children for tabs that use BaseCompositeEditHandler (have children)
2020-06-30 07:08:03 +10:00
Matt Westcott
1b92c0a9ea
Upgrade jquery to 3.5.1 ( #6167 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-06-27 08:22:13 +01:00
Dan Braghis
18fdd905d3
Release notes for #6125 and #6121
2020-06-26 11:12:35 +01:00
Samir Shah
30419231e5
Disable password auto-completion on UserForm password fields. ( #6175 )
2020-06-25 17:11:03 +01:00
Matt Westcott
3ec7eada56
Promote redirect importing to a major feature
2020-06-25 17:09:17 +01:00
Matt Westcott
e9e6a8d5e7
Add more detail to RoutablePageMixin example ( #6128 )
2020-06-25 16:57:58 +01:00
Gassan Gousseinov
a4e05f4538
I would like only add my own editor without to redefine a default one. ( #6118 )
2020-06-25 16:53:06 +01:00
Jean Zombie
9baf6ce62a
Update hooks.rst ( #6160 / #6161 )
...
This proposed update is in regard to Issue #6160
2020-06-25 14:54:16 +01:00
Matt Westcott
8d21ad6e5a
Release note for #6176 in 2.10
2020-06-25 10:31:29 +01:00
Matt Westcott
0067194d71
Release note for #6176 on 2.9.1
2020-06-25 10:29:52 +01:00
Matt Westcott
216dfdf459
Add release notes for Wagtail 2.9.1
2020-06-25 10:29:15 +01:00
Tom Dyson
20b99d4386
Remove 'whitelist' from page reference docs ( #6153 )
2020-06-16 11:23:51 +01:00
Timothy Bautista
cfc2bc8470
Fix minor typo in 2.10 changelog ( #6140 )
...
XLX/XLXS -> XLS/XLSX
2020-06-12 09:30:39 +01:00
Karl Hobley
06303c7169
Change contributor name for mozgsml to Nikolay Lukyanov
2020-06-09 11:04:13 +01:00
Karl Hobley
8d84f6a415
Changelog/release note/contributor for #6040
2020-06-09 09:42:48 +01:00
mozgsml
4abeb8232d
WebP images quality/lossless compression parameters ( #6040 )
...
* Add WebP-image quality and lossless
* Add WebP-image quality and lossless to Docs
* add WebP quality tests
* Split image quality filter => jpegquality, webpquality
* WebP lossless to inage format options
* Update WebP quality/lossless docs
* Updated Willow version
* WebP quality/lossless minor fix
2020-06-09 09:29:48 +01:00
Matt Westcott
e10a9f26e7
Use standard subheading format for upgrade considerations
2020-06-08 14:08:17 +01:00
Martin Sandström
301d1bc7f5
Add ability to import redirects from a file wagtail.contrib.redirects
...
* Add support for importing redirects via tsv, csv, xls and xlsx files
* Add import_redirects management command to redirects documentation
2020-06-07 11:20:39 +10:00
Matt Westcott
6e9bcef5db
Release note for #6013
2020-06-05 15:23:50 +01:00
Thibaud Colas
df164a7e69
Fix JS not working in IE11 due to using unimplemented NodeList#forEach
2020-06-05 07:24:33 +10:00
Andrew Bunker
6fe9d0a23a
Add note about Elasticsearch backend credentials to docs ( #6097 )
2020-06-03 17:37:26 +01:00
Matt Westcott
67fc0d7787
Release note for #6046
2020-06-03 17:28:34 +01:00
Coen van der Kamp
eb9cff7bf3
Drop null=True from Site.site_name
...
* Avoid using null on string-based fields such as CharField and TextField. If a string-based field has null=True, that means it has two possible values for “no data”: NULL, and the empty string.
* See: https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.Field.null
2020-06-02 20:42:29 +10:00
Timothy Bautista
48511a7457
Strip HTML tags search index for RichTextBlock & RichTextField
...
* Add get_searchable_content function to RichTextField
* Fixes #6098
2020-06-02 20:34:38 +10:00
Timothy Bautista
dd7a928353
Tweak Wagtail logo hover animation in docs
...
This matches the hover animation exactly the same as in Wagtail but without the "playful" wagtail Easter egg (where the original hover animation came from)
2020-06-02 20:34:20 +10:00
Matt Westcott
ab71e515e4
Release notes for #6057
2020-05-27 18:17:04 +01:00
jacobtoppm
ead6c8b2a6
Add WAGTAIL_TIME_FORMAT to settings reference
2020-05-27 13:55:52 +01:00
GTpyro
147fda12fa
Update signals.rst for Python 3 compatibility
...
The send_to_slack example was not compatible with Python 3. Example is updated using the requests & json libraries (instead of urllib & urllib2)
2020-05-26 19:21:13 +02:00
Dan Bentley
f43db1e69e
Fetch and apply annotations if using specific()
2020-05-24 10:09:45 +10:00
Timothy Bautista
1958bba247
Fix typo in 2.10 release notes doc
2020-05-21 09:21:52 +01:00
Coen van der Kamp
a1a2c35c1c
Template render richtext without wrapper, add wagtail.contrib.legacy.richtext
...
* Add wagtail.contrib.legacy.richtext with tests & docs
* Make RichText.__html__ behave the same as template filter
* Resolves #1214
2020-05-21 07:53:31 +10:00
Coen van der Kamp
eed16e0034
Add SVG Icons and include in admin menu
...
* This commit only covers the migration of the icons in the menu and draftail editor. All
other admin menu icons remain implemented as before.
* Existing font based icon support still exists.
* Convert menu icons to SVG
* This could be considered a breaking change for any Wagtail sites or
packages that are leveraging Wagtail's Button and Icon React components.
* Remove references to unused `submenu-trigger` class
* Prefix icon `id`s with `icon-` to prevent `id` collisions
* Add hooks support (not yet documented) for adding custom icons
2020-05-21 07:36:33 +10:00
Matt Westcott
92e9e15683
Release note for phrase search / search query expressions
2020-05-20 14:29:00 +01:00
Karl Hobley
9dd9d0c895
Docs for parse_query_string
2020-05-20 14:12:27 +01:00
Karl Hobley
81811f6c1c
Documentation for phrase search and query classes
2020-05-20 14:12:18 +01:00
Coen van der Kamp
99abab5d6b
Add section to explain commit to pull request
2020-05-19 17:56:26 +01:00
Karl Hobley
58f6aecfc7
Some cleanups in PostgreSQL search module ( #5953 )
...
* Separated logic for extracting indexable content
* Docs edits
* Readability improvements
* Simplify/deduplicate indexing code
* Simplify search code
Pulled in some code that will be included in a future Django release
(query.py)
* Reword a limitation
* Fix typo in docstring
* Raise a warning when Boost() is used in PostgreSQL search backend
* Add note mentioning that RawSearchQuery can be replaced in Django 3.1
* Add comment mentioning that we can replace query.py if Django PR merged
2020-05-18 15:54:31 +01:00
Matt Westcott
52013f4920
Mention INSTALLED_APPS ordering in custom user docs
2020-05-18 11:33:53 +01:00
Thibaud Colas
7eeb44ad04
Replace gulp-sass with gulp-dart-sass
...
* Rewrite Sass code that relies on deprecated or removed features in Dart Sass
* Remove unneeded rebuild of node-sass
* Update lockfile
2020-05-17 21:00:20 +10:00
Thibaud Colas
471823f238
Upgrade to Jest 23
...
* Jest 24 is out but upgrading to it would require us to also update our Webpack tooling to Babel 7, which is quite significant work.
* Rewrite Draftail initialisation tests to stop relying on jsdom script parsing
2020-05-17 20:35:00 +10:00
Kalob Taulien
b5f5ac10db
Add export_filename option to modeladmin
...
Merge pull request #6031 from wagtail/reports-filename
2020-05-15 10:04:57 -06:00
LB (Ben Johnston)
d3dd7296c9
docs - revise heading levels for feature detection (images) ( #6029 )
2020-05-15 09:42:37 +01:00
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
jacobtoppm
cc676c4c9e
Add export_filename option to modeladmin
2020-05-14 15:50:47 +01: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
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
1ef36d0420
Fill in release date for 2.9
2020-05-04 11:35:15 +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
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
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
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
Matt Westcott
58b11833c8
Add placeholder docs for internationalisation
2020-04-20 21:04:00 +10:00
Matt Westcott
4a0d202fc7
Release note for #5927
2020-04-20 11:56:09 +01:00
Matt Westcott
4023a90d6e
Allow custom image model to have fields defined as required
...
If validation rules prevent the multiple image upload view from
creating Image objects from just the image file, an UploadedImage object is
created instead, and turned into an image once the form is filled in.
* Fixes #847
* Add UploadedImage model and related views
* Update custom image model docs
2020-04-20 14:46:24 +10:00
Matt Westcott
ef0c8f3446
Add documentation for reporting security issues
2020-04-20 11:57:26 +10:00
Mitchel Cabuloy
d0a0c804c2
Remove inappropriate banner landmarks & adopt main element in admin 404
...
According to the ARIA spec:
> A region that contains mostly site-oriented content, rather than page-specific content.
> Site-oriented content typically includes things such as the logo or identity of the site sponsor, and a site-specific search tool. A banner usually appears at the top of the page and typically spans the full width.
Where the `banner` role was applied was more page-specific than
site-specific. In addition, tags with `banner` roles should not live
under another landmark. To rectify, removed the misused banner roles.
Remove inappropriate contentinfo landmarks
According to ARIA spec 1.1
> A large perceivable region that contains information about the parent document.
> Examples of information included in this region of the page are copyrights and links to privacy statements.
They don't apply to the action buttons on where this was applied to.
Add main landmark to 404 page
2020-04-19 22:23:21 +10:00
Rich Brennan
2dbd0a49f9
Fix document serve response filename when non-ascii characters used
...
* url encode the document filename in the Content-Disposition header in the document serve view
2020-04-19 21:56:49 +10:00
LB Johnston
ce815a5f00
page.copy to use exclude_fields_in_copy
child & parental m2m relations
...
- fixes #5099
- test_copy_page_with_excluded_parental_and_child_relations
- ensure the tests are wrapped in a try/finally so that the model is always reset back even if tests fail
- update page model tests
2020-04-19 15:13:08 +10:00
LB
a69559174f
Add tutorials Q1 2020
2020-04-18 23:49:10 +01:00
Nick Smith
555adccc2a
Set TreeQueryset.delete.queryset_only = True ( #5938 )
...
Fixes wagtail/wagtail#5937
This reverts Wagtail's behaviour to match Django's, where an error is
raised as a safety mechanism.
Projects relying on the non-safe behaviour should update e.g.
`MyModel.objects.delete()` to `MyModel.objects.all().delete()`.
2020-04-17 21:44:01 +01:00
Matt Westcott
297f663861
Rename _list_report.html to _list_page_report.html
2020-04-17 12:02:28 +01:00
Matt Westcott
abb6634d92
Move default export_heading_overrides / list_export config to PageReportView
2020-04-17 12:02:28 +01:00
Karl Hobley
1e4a331766
Split out base report template into an empty base and a page-specific one
2020-04-17 12:02:28 +01:00
Karl Hobley
a1b09f65c9
Rename export_heading_overrides to export_headings
2020-04-17 12:02:28 +01:00
Matt Westcott
deb1213148
Release notes for 2.8.1
2020-04-14 10:11:23 +01:00
Matt Westcott
1d043914b4
Release notes for 2.7.2
2020-04-14 10:11:23 +01:00
Karl Hobley
9d4009bebb
Changelog/release notes
2020-04-08 11:12:57 +01:00
Tom Dyson
f37da8f7d8
Cache image renditions ( #4883 )
2020-04-07 14:05:27 +01:00
jacobtoppm
23af29d35c
Use AdminOnlyMenuItem in both code samples in reports docs
2020-04-07 12:13:17 +01:00
jacobtoppm
2b096419dc
Fix typo in import in reports documentation
2020-04-07 12:13:17 +01:00
Andy Babic
9fa2ba939d
Release notes for #5932
2020-04-03 22:01:08 +01:00
Andy Babic
db8ab0875d
Update BaseSetting to make it easier to utilise QuerySet.select_related() for more complex settings which reference related objects (such as pages)
2020-04-03 22:01:08 +01:00
Andy Babic
e9371f45c7
Release notes for #5931
2020-04-03 21:28:13 +01:00
Andy Babic
18118f54b6
Update docs
2020-04-03 21:28:13 +01:00
Andy Chosak
3797132b4d
Allow ListBlocks to leverage child bulk_to_python
...
Currently a select set of StreamField blocks like PageChooserBlock
expose a bulk_to_python method that is used to optimize their
retrieval from the database. As reported in issue 5926, ListBlock could
take advantage of this so that its child items are loaded at once,
instead of one at a time.
This change modifies how ListBlock.to_python works so that it calls its
child block's bulk_to_python, if defined. This allows for a single query
instead of one query per child item.
Note that this change doesn't add bulk_to_python to ListBlock itself,
meaning that individual ListBlocks in a StreamField or StructBlock are
still retrieved independently. But it does optimize the lookup for each
ListBlock.
2020-04-03 09:31:56 -04:00
Mohamed Feddad
bb2e460c0b
Replace deprecated ugettext, ungettext with gettext and ngettext. ( #5907 )
2020-04-02 17:15:26 +01:00
Tom Dyson
8c1a234f13
Remove our outdated preferences for deployment
2020-03-25 14:31:35 +00:00
Karran Besen
36e777418f
Fix: Hide empty 'view live' links
2020-03-20 14:33:09 -04:00
Matt Westcott
3f86de27e0
Document AdminOnlyMenuItem in hooks documentation
2020-03-19 17:57:52 +00:00
Matt Westcott
205249b317
Release note for #5884
2020-03-19 17:49:33 +00:00
jacobtoppm
5e95e91226
Add AdminOnlyMenuItem and update custom report documentation to use it
2020-03-19 17:47:37 +00:00
jacobtoppm
587ccdc8b0
Add complete report example
2020-03-19 17:47:30 +00:00
jacobtoppm
cbe3058794
Add documentation on how to add custom reports
2020-03-19 17:47:17 +00:00
Paulo
494260f8ee
Fixed #5537 -- Fetch deferred stream fields from db ( #5661 )
2020-03-19 17:20:22 +00:00
Frantisek Holop
fc0cf64ac6
Be more specific regarding the cached loader. ( #5754 )
...
Be more explicit about not needing to enable the `cached.Loader`
manually, unless using some custom loaders.
2020-03-19 17:01:29 +00:00
Michał (Quadric) Sieradzki
5e2d12b518
Add scope attribute to TableBlock generated tables for visually impaired users ( #5865 )
2020-03-19 16:50:55 +00:00
Michał (Quadric) Sieradzki
06fbde14b3
fix display issue on snippet edit view ( #5883 )
2020-03-19 16:44:34 +00:00
Fidel Ramos
0ccfe9568f
Fix image resizing failing on slim images
...
Image operations sometimes calculate a target width or height of zero, which
make Willow raise a ValueError.
If an user uploads one such image it's possible to break the whole Wagtail
image manager/picker/uploader for all users.
The fix is to use a minimum of 1 pixel for either the target height or the
width. The image might lose some aspect ratio, but it's better than an
exception.
2020-03-19 16:39:20 +00:00
Matt Westcott
526649008d
Release note for #5870
2020-03-19 16:12:40 +00:00
jacobtoppm
12d5edcef6
Add heading option to panels reference
2020-03-19 16:10:30 +00:00
Matt Westcott
f83977c291
Add cache to speed up compiling media declarations for stream blocks
...
As proposed by @pimarc in https://github.com/wagtail/wagtail/issues/3062#issuecomment-586331423
2020-03-18 16:12:46 +00:00
Matt Westcott
a34d509f7e
Release note for #5880
2020-03-13 17:42:11 +00:00
jacobtoppm
b3e5278a1b
Remove spreadsheet export setting, and allow a user to select format via a dropdown instead
2020-03-13 17:33:22 +00:00
jacobtoppm
fbead4549b
Add documentation for spreadsheet format setting and new modeladmin features
2020-03-13 17:33:20 +00:00
Matt Westcott
98c2aefbe8
Revert "Allow url punctuation as defined in RFC 3986 section 2.3"
...
This reverts commit 08ef3f4840
. Reverting as it breaks serving static files with whitenoise.
Conflicts:
CHANGELOG.txt
docs/releases/2.9.rst
2020-03-10 15:51:31 +00:00
Andy Chosak
17e09fee76
Fix quotes in ModelAdmin documentation
...
Building the docs currently generates a warning:
wagtail/docs/reference/contrib/modeladmin/indexview.rst:423: WARNING: Could not lex literal_block as "python". Highlighting skipped.
This is due to use of backticks instead of single quotes on this page:
https://docs.wagtail.io/en/v2.8/reference/contrib/modeladmin/indexview.html#modeladmin-get-queryset
In practice this doesn't seem to actually break highlighting, but it's still good to fix.
2020-03-04 13:21:53 -05:00
Matt Westcott
7dae758ea4
Release note for #5845
2020-03-04 11:53:03 +00:00
Storm Heg
08ef3f4840
Allow url punctuation as defined in RFC 3986 section 2.3
2020-03-03 17:38:07 +00:00
stevelyall
babcbb7f80
Add Vidyard to oEmbed provider whitelist
2020-03-03 17:06:05 +00:00
Casper
19f50c72ce
Hide preview button when preview_modes is empty
2020-03-03 16:20:23 +00:00
Matt Westcott
122575d2ee
Release note for #5848
2020-02-26 14:11:17 +00:00
Matt Westcott
09a2ccf8cc
Documentation for custom tag models
2020-02-26 14:10:21 +00:00
Maylon Pedroso
78cc81c505
Set context variable to None if no image provided to image templatetag
2020-02-25 23:16:52 +00:00
dt
a6fb0762a8
Mention options for schema in sitemap
...
Add clear way to change schema in `sitemap.xml` to https on `sitemap`
documentation page
2020-02-25 21:33:21 +00:00
Matt Westcott
8931312025
Release note for #5827
2020-02-21 17:29:07 +00:00
Matt Westcott
4df455ea9f
Remove support for Django 2.1 ( #5840 )
2020-02-18 13:55:53 +00:00
Matt Westcott
a97256a4f7
Release note for #5837
2020-02-18 11:45:53 +00:00
Matt Westcott
51d8433b6b
Release note for #5787
2020-02-17 12:30:10 +00:00
Matt Westcott
96cd5c066d
Update wording
...
Also move warning so it occurs on server startup rather than first request
2020-02-17 12:06:19 +00:00
Matt Westcott
7b6a89c155
Upgrade consideration note re SiteMiddleware deprecation
2020-02-17 12:06:19 +00:00
Matt Westcott
4950158e46
Remove remaining references to request.site
2020-02-17 12:06:19 +00:00
Matt Westcott
76cd26b099
Remove remaining references to SiteMiddleware
2020-02-17 12:06:19 +00:00
Matt Westcott
f34891fbd3
Update docs to cover wagtail_site tag, find_for_request and deprecation of SiteMiddleware
2020-02-17 12:06:18 +00:00
Matt Westcott
5eec4d954e
Deprecate SiteMiddleware ( #3834 , #5332 , #5673 )
...
Squashed commit of the following:
commit 6ff78d0271ae9bb8be20edc77acc046b7ecd1190
Merge: cbb5575
b7872e3
Author: Matt Westcott <matt@west.co.tt>
Date: Fri Jan 24 10:41:00 2020 +0000
Merge branch 'master' into sitemiddleware-rebase-2
Conflicts:
docs/reference/settings.rst
wagtail/api/v2/endpoints.py
wagtail/api/v2/filters.py
wagtail/api/v2/serializers.py
commit cbb5575fd8
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 02:30:00 2019 +0100
Update branch, resolve conflicts, clean up
commit 6188742cfe
Merge: 4b4dee6
1c1341e
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 01:48:21 2019 +0100
Resolve merge conflicts
commit 4b4dee6c47
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 01:42:37 2019 +0100
Temporarily add Pipfile and yarn file
commit 540dff380b
Merge: 4a93424
0d2442f
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Fri Sep 27 20:22:00 2019 +0200
Merge branch 'master' of https://github.com/aritas1/wagtail into aritasmaster
commit 0d2442fc1f
Author: Daniel <mail@aritas.de>
Date: Wed Jun 26 03:01:44 2019 +0200
clean tests and add ALLOWED_HOSTS globally
commit b7e6b8e655
Author: Daniel <mail@aritas.de>
Date: Wed Jun 26 03:00:07 2019 +0200
change context processor to be lazy
commit b16250fce9
Author: Daniel <mail@aritas.de>
Date: Tue May 28 21:37:05 2019 +0200
update SiteMiddleware documentation
commit 4be243f64d
Author: Daniel <mail@aritas.de>
Date: Tue May 28 20:52:08 2019 +0200
fix linting
commit 33151817a0
Author: Daniel <mail@aritas.de>
Date: Tue May 28 19:11:47 2019 +0200
add wagtail_site template tag
commit 38b304105a
Author: Daniel <mail@aritas.de>
Date: Tue May 28 16:19:22 2019 +0200
update tests for deprecated SiteMiddleware
commit f745aae9d0
Author: Daniel <mail@aritas.de>
Date: Tue May 28 16:11:58 2019 +0200
change Site finding mechanism to be independent of deprecated SiteMiddleware
2020-02-17 12:06:18 +00:00
Andy Babic
1c2719720d
Release notes for #5810
2020-02-16 21:43:36 +00:00
Andy Babic
061f0e2571
Release notes for #5828
2020-02-16 21:18:11 +00:00
Samir Shah
dd4a04f843
Skip field validation when unpublishing pages.
2020-02-16 21:05:51 +00:00
Thibaud Colas
676503023d
Mention docker-wagtail-develop in developing docs ( #5820 )
...
Based on discussion in #bristol-sprint on Slack. See also https://github.com/wagtail/vagrant-wagtail-develop/pull/25 .
2020-02-12 14:11:40 +01:00
jacobtoppm
3ac230f821
Prevent 'status' banners for page locking being doubled up on POST requests ( #5818 )
2020-02-11 09:25:09 +00:00
Matt Westcott
4314f3d1a1
Implement MultipleChoiceBlock (rebase of #5592 ) ( #5819 )
...
* Implement MultipleChoiceBlock (squashed commits from #5592 )
* Omit widget from frozen kwargs
* Rename get_callable_choices to indicate it is an internal method
* Add release notes for MultipleChoiceBlock
2020-02-10 22:24:49 +00:00
Arkadiusz Ryś
47f677577e
Make server-side slug generation respect WAGTAIL_ALLOW_UNICODE_SLUGS ( #5808 )
2020-02-05 17:33:32 +00:00
Matt Westcott
afd707f6b4
Fill in release date for 2.8
2020-02-03 13:34:04 +00:00