Matt Westcott
a1f882b7c9
Convert remaining gettext .format strings to old-style string formatting
...
As per #5548 / #6238 . Fixes #6343
2020-08-21 13:26:00 +01:00
Matt Westcott
8542f5fe9c
Fix underline lengths to prevent Sphinx warnings
2020-08-07 17:23:42 +01:00
jacobtoppm
e85f16b500
Add a use case example for WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH=False
2020-08-07 17:10:24 +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
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
Chris Contolini
4231d9ef11
Fix minor typo in TableBlock docs ( #6259 )
...
Also a small grammatical fix.
2020-07-28 07:14:05 -04: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
Dan Braghis
f69287f6f4
Add documentation
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
2037e8c089
Update images in documentation
2020-07-24 16:59:33 +01:00
jacobtoppm
8911bd30d7
Add workflow models to reference
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
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
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
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
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
Storm Heg
8c306910dd
Fix incorrect urls in the docs
2020-07-06 13:15:40 +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
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
Tom Dyson
20b99d4386
Remove 'whitelist' from page reference docs ( #6153 )
2020-06-16 11:23:51 +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
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
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
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
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
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
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
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
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
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
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
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