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

2806 Commits

Author SHA1 Message Date
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
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
Andy Chosak
43acf24cc8 Always include contributor names in the CHANGELOG
The CHANGELOG docs say that contributor names should only be included if
they are not a core committer, but historical practice has been to
always include names. Per discussion on the core team, we want to change
this guidance to explicitly recommend always including contributor
names.

This not only encourages and recognizes contributions but also helps
future contributors know who worked on different parts of the code. This
record (along with git history) provides a good reference to understand
who made certain changes or features.
2020-01-27 09:25:42 -05:00
Andy Chosak
81d23fc8ab Support the rel attribute on ModelAdmin buttons
Currently it is possible to pass the target attribute to a button
created using ModelAdmin's ButtonHelper framework. This allows you to
generate button links like <a ... target="_blank">.

For example, if adding a new button and modeling it after the existing
edit_button code [0], you can add {'target': "_blank"} to the returned
dict and it'll get passed to the template when the button is rendered.

To be consistent with PR 4844, and to be consistent with what seems to
be the best practice ([1], [2]), we should also support passing the rel
attribute, which would allow for creation of button links like <a ...
target="_blank" rel="noopener noreferrer">.

[0] 5e2f50403b/wagtail/contrib/modeladmin/helpers/button.py (L61-L73)
[1] https://developers.google.com/web/tools/lighthouse/audits/noopener
[2] https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
2020-01-26 21:06:26 -05:00
Jack Paine
70da204eb1 Reduce contrast of rich text toolbar. Fix #4997 (#5740) 2020-01-25 00:05:27 +00:00
Thibaud Colas
2933589680 Add release notes for #5467 2020-01-24 20:56:18 +00:00
Thibaud Colas
eb0612c21c Add release notes for #5784 2020-01-24 15:56:34 +00:00
Thibaud Colas
b7872e3f2f Add release notes for #5773 2020-01-23 16:21:43 +00:00
Thibaud Colas
ef6ace6e98 Add release notes for #5775 2020-01-23 15:59:43 +00:00
Matt Westcott
11ba755f63 Release note for #5777 2020-01-23 15:33:19 +00:00
Matt Westcott
8ad9f8ecf7 Add changelog / release notes for 2.9 2020-01-23 11:56:35 +00:00
LB Johnston
d202195333 fix minor typos in changelog/2.8 release notes 2020-01-22 07:27:34 +10:00
Matt Westcott
d2080ff892 Update docs to cover responsive HTML being disabled by default 2020-01-20 18:57:51 +00:00
Matt Westcott
25942a4467 Rename WAGTAIL_ENABLE_RESPONSIVE_EMBED to WAGTAILEMBEDS_RESPONSIVE_HTML for consistency with other settings 2020-01-20 18:57:51 +00:00
Saptak S
eda098de58 Abort unfinished ajax before new calls in all search ajax 2020-01-17 17:41:51 +00:00
Eric Sherman
f5f841ed59 dropdown on search page by initing dropdowns on ajax success 2020-01-17 16:56:21 +00:00
Kalob Taulien
aefb0f9506 Responsive emebed setting 2020-01-17 16:44:46 +00:00
Matt Westcott
7a92ca5ad9 Mark nested InlinePanels as experimental for now
See https://github.com/wagtail/wagtail/issues/5126#issuecomment-575607574, https://github.com/wagtail/wagtail/pull/5732#issuecomment-574753410
2020-01-17 13:00:50 +00:00
Matt Westcott
590bea3b7b Revert "Fix submenu footer blocking items in admin" (#5606)
This change causes the footer to no longer be bottom-aligned when the menu is shorter than window height.

This reverts commit a459e91692.
2020-01-17 12:58:20 +00:00
Andy Chosak
349fca66f3 Fix: Properly save ordering of nested InlinePanels
The order of nested InlinePanels (recently formally added in 5566)
doesn't get saved properly due to some now-invalid assumptions in the JS
selector code.

Currently, Wagtail users can use the editor up/down arrows to order
InlinePanel elements that contain child InlinePanels, but these may not
be properly saved.

Before InlinePanel nesting was supported, it was a safer bet that a
child panel would only contain one hidden input named "-ORDER". With
nesting, however, a parent panel will also contain hidden inputs named
like this for its child panels. This breaks the logic used in the
ordering code.

This change modifies the logic to use the jQuery `.children()` selector
instead of `.next()`, ensuring that we reference the correct adjacent
panel item.

An easy way to test this against current master is to use the Wagtail
testapp test models that exercise this behavior:

1. `wagtail start testwagtail` to create a new project.
2. `cd testwagtail`
3. Edit testwagtail/settings/base.py to add the Wagtail test
application `'wagtail.tests.testapp'` to the list of `INSTALLED_APPS`.
For the admin to work properly with this app, you also need to add
`'wagtail.contrib.settings'` to that list and copy the definition of
`WAGTAILADMIN_RICH_TEXT_EDITORS` from wagtail/tests/settings.py.
4. `./manage.py migrate` to create your local database.
5. `./manage.py createsuperuser` to create an admin user.
6. Create a new Event Page
(http://localhost:8000/admin/pages/add/tests/eventpage/3/).
7. Fill in all required items, and then add multiple speakers under
"Speaker Lineup". For each speaker, add at least one Award. Save the
page.
8. Try using the up/down arrows to reorder the speakers (the parent
InlinePanel), and save the page.
9. Note that when the page reloads, the ordering hasn't been saved. If
you debug using the developer tools, you'll notice that this is because
the code being modified here selects the child panel items instead of
the adjacent parent panel item.
2020-01-15 16:43:32 +00:00
Ascani Carlo
4864920555 Fix update_index throwing AttributeError when value is None (#5757) 2020-01-14 11:33:25 +00:00
Dan Braghis
c4a0ec2c4f Use sensitive_post_parameters on password reset form (#5760) 2020-01-14 11:13:21 +00:00
Matt Westcott
1e44186f32 Reword upgrade note about removal of Page/Site from Django admin 2020-01-08 15:50:05 +00:00
Matt Westcott
e927f6269a Release note for #5634 2020-01-08 15:43:34 +00:00