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

393 Commits

Author SHA1 Message Date
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
jacobtoppm
fbead4549b Add documentation for spreadsheet format setting and new modeladmin features 2020-03-13 17:33:20 +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
09a2ccf8cc Documentation for custom tag models 2020-02-26 14:10:21 +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
4950158e46 Remove remaining references to request.site 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
Samir Shah
dd4a04f843 Skip field validation when unpublishing pages. 2020-02-16 21:05:51 +00:00
Karl Hobley
2e23ef4ee4
Author specific locking docs changes (#5771)
* Add to Dashboard docs

* Replace Dashboard image to show locked pages

* Add further explanatory text to Dashboard

* Improve image readability, add missing bracket

Co-authored-by: jacobtoppm <55137073+jacobtoppm@users.noreply.github.com>
2020-01-28 09:07:01 +00:00
Matt Westcott
d2080ff892 Update docs to cover responsive HTML being disabled by default 2020-01-20 18:57:51 +00:00
Matt Westcott
3f27014a86 Merge branch 'author-specific-locking' of https://github.com/jacobtoppm/wagtail into kaedroho-author-specific-locking 2020-01-08 15:05:59 +00:00
Matt Westcott
ee8eda8353 Merge branch 'author-specific-locking' of https://github.com/kaedroho/wagtail into kaedroho-author-specific-locking 2020-01-08 15:02:19 +00:00
jacobtm
7421590dc7 Document reports submenu hooks 2020-01-02 09:47:52 +00:00
jacobtm
99cb3154cc Correct model reference for page, page cannot be edited when locked is True, rather than False 2020-01-02 09:41:42 +00:00
Dan Swain
749d0172e5 Documentation - include {{ block.super }} example in modelAdmin 2019-12-02 09:43:33 +10:00
Dan Swain
5a8c4edba5 Documentation - add StreamFieldPanel to available panel types 2019-12-01 19:13:11 +10:00
Karl Hobley
5f68627950 Merge branch 'master' into author-specific-locking 2019-11-26 15:55:49 +00:00
Karl Hobley
23145382e9 Move settings reference into separate doc 2019-11-20 17:39:46 +00:00
Tom Usher
644ee86e00 Add support for cloudflare API tokens (#5688) 2019-11-19 14:47:52 +00:00
Martey Dodoo
229103ff2e Update links in documentation. (#5689)
Use HTTPS links instead of non-secure HTTP links wherever possible in
documentation.
2019-11-08 09:15:01 +00:00
Matt Westcott
8577cc2d02 Remove old versionadded tags in the docs 2019-10-29 08:56:12 +00:00
Karl Hobley
ed32bc8444 fixup! Record time and user when a page is locked 2019-10-28 11:16:54 +00:00
Karl Hobley
67213d7286 Record time and user when a page is locked 2019-10-16 14:26:04 +01:00
Andreas Bernacca
3fd3d97850 Add model to PersonAdmin in documentation 2019-10-16 10:54:05 +01:00
Matt Westcott
34b3f0c0fc Recommend signals rather than hooks for model-level customisations
As per #5620 - signals are often overlooked as a way of customising model-level behaviour. We should recommend them over admin hooks where possible, as they aren't reliant on users taking one particular path through the admin - for example, an 'add document' signal will be triggered regardless of whether a document is created through the single uploader, multiple uploader, chooser model or a scripted task, whereas a hook would not catch all of these cases.
2019-10-15 13:52:32 +01:00
Matt Westcott
a0035c33c0 Add example of template rendering to TableBlock docs
Addresses #5540
2019-10-12 09:29:10 +10:00
Matt Westcott
3557c954c0 Clarify that menu item order attribute is ignored in construct_page_action_menu 2019-10-11 12:17:52 +01:00
Matt Westcott
6de06b6d04 Update construct_page_action_menu example
Now avoids redefining the whole list, and reflects the fact that the first (rather than last) item is picked as the default.
2019-10-11 12:11:09 +01:00
Rahmi Pruitt
fe2f8644fa Allow default item in action menu to be overridden with construct_page_action_menu hook
Fixes #5438
2019-10-11 12:11:08 +01:00
Matt Westcott
76d72a36c3 Documentation tweaks for WAGTAILDOCS_SERVE_METHOD
As suggested by @chosak - https://github.com/wagtail/wagtail/pull/5296#discussion_r324252497 , https://github.com/wagtail/wagtail/pull/5296#discussion_r324257167
2019-09-21 18:53:48 +01:00
Zac Connelly
a19571db7a update docs for TabbedInterface (#5374) 2019-08-29 11:23:13 +01:00
Matt Westcott
227221f7fb Update docs with new locations of wagtail.admin.utils definitions 2019-08-19 18:58:56 +02:00
rjpruitt16
f7ff6d39c4 Add caption field to TableBlock
* Create caption field added to table block widget

Caption allows for users users with screen readers to be
able to understand the contents of a table.

* Fixed bugs in javascript and typos

* Updated documentation and change log

* Fixed table caption bug and requested pr edits

* Fixed table caption bug and request pr edits

* Removed changes in changelog.txt

* Fixed bug and requested PR edits
2019-08-14 22:17:25 +02:00
Michael van Tellingen
9cd2fc2c82 Add a construct_page_listing_buttons hook
This hook mimics the functiolity provided by `construct_page_action_menu`
in that it constructs the final list of buttons to be shown in the wagtail
admin interface.  This means that within this function button's can be
removed, added or re-ordered.

See #4925
2019-07-21 17:40:26 +10:00