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
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
Matt Westcott
ceb4270e01
Remove versionadded/versionchanged notes for 2.8
2020-04-22 13:54:09 +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
18118f54b6
Update docs
2020-04-03 21:28:13 +01:00
Mohamed Feddad
bb2e460c0b
Replace deprecated ugettext, ungettext with gettext and ngettext. ( #5907 )
2020-04-02 17:15:26 +01:00
Matt Westcott
3f86de27e0
Document AdminOnlyMenuItem in hooks documentation
2020-03-19 17:57:52 +00:00
jacobtoppm
12d5edcef6
Add heading option to panels reference
2020-03-19 16:10:30 +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