0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

2500 Commits

Author SHA1 Message Date
Matt Westcott
4bb8a5f420 Document Python 3.7 support 2018-10-17 18:23:35 +01:00
Matt Westcott
e844200f27 Remove Django 1.11 support from code and docs 2018-10-17 15:30:36 +01:00
Matt Westcott
771eb42d05 add 2.4 release notes page 2018-10-17 11:46:56 +01:00
Matt Westcott
5b7bf05db8 Version bump to start work on 2.4 2018-10-17 11:07:33 +01:00
Jorge Barata
8161d7c14c Fix get_permission_helper_class documentation typo 2018-10-16 11:29:05 +01:00
Matt Westcott
7c82594c29 Trivial change to 2.3.rst to see if readthedocs picks it up 2018-10-11 17:23:27 +01:00
Matt Westcott
5b8031ee18 Move readthedocs.yml to project root
This is now required according to https://github.com/rtfd/readthedocs.org/issues/4668
2018-10-11 16:59:57 +01:00
Matt Westcott
523a014adb Add note that 2.3 is the last dj1.11-compatible release 2018-10-11 14:26:24 +01:00
Matt Westcott
56801cc0ce Release note for #4788 2018-10-11 12:46:21 +01:00
Coen van der Kamp
30c21feda1 Add comment refering to Wagtail stylesheet back in 2018-10-11 12:07:51 +01:00
Coen van der Kamp
b001d0f127 Drop redundant color color-grey-1-1 2018-10-11 12:07:51 +01:00
Matt Westcott
666876693b Do not log user out when changing their own password. Fixes #4200 and #4794 2018-10-10 20:52:00 +01:00
Matt Westcott
2fe866e484 Release note for #4801 2018-10-10 16:09:59 +01:00
Matt Westcott
bf870cecd3 Gracefully handle document links with missing ID attributes in rich text
Fixes #4791
Previously, our rich text conversion functions handled the case where a document link specified an ID which is not found in the database. However, they failed with a KeyError when the id attribute was missing completely; links of this second type would occur whenever a link of the first type was re-saved from the Draftail editor. The fix is two-fold:

1) Catch the "missing ID attribute" case - in this case, the resulting link will be missing both the href and id attributes
2) Update the handling of the "ID present but document not found" case so that the id attribute survives the round-trip to the editor and back. The final link as rendered on the front-end will still be an attribute-less <a> element, but the id will be retained in the database (and in the versions rendered within rich text editors) which may be useful for troubleshooting.
2018-10-10 12:54:52 +01:00
Thibaud Colas
7cd73c472f Add release notes for #4800 2018-10-07 22:27:51 +03:00
Matt Westcott
44e5beb481 Release / deprecation notes for #4777 2018-09-28 22:41:01 +01:00
Janneke Janssen
4134288700 Add autocomplete off to custom datetime widgets 2018-09-28 16:23:48 +01:00
Matt Westcott
b2b42faf14
Fix note about update_index not being required for the db backend 2018-09-21 10:59:52 +01:00
Matt Westcott
6454e500ab
Fix module path (wagtailforms.models should be wagtail.contrib.forms.models) 2018-09-21 10:53:51 +01:00
Meteor0id
088d3ffc21 missing quotation, not that it matters
award of smallest contribution of the year goes to..
2018-09-13 13:00:57 +01:00
Ben Dickinson
4c72f767ea Add HTTP_AUTHORIZATION to values copied to dummy preview requests 2018-09-12 16:37:55 +01:00
Michael Harrison
8ef0edb371 Add file download url to Imagesv2 API endpoint 2018-09-06 17:12:02 +01:00
Samir Shah
265d4baaf2 Add a title attribute to the image displayed in an ImageChooserBlock. 2018-09-06 16:13:38 +01:00
Dan Braghis
5ddba47cc3 Add Auto-Submitted: auto-generated header to admin utils send_mail 2018-09-06 15:58:24 +01:00
Michael Borisov
38b2defc7f Check key value
It fixes issue when press 'б' in russian keyboard it's trigger ','
2018-09-05 15:07:45 +01:00
Matt Westcott
2947c584b0 Recommend the use of ManifestStaticFilesStorage. Fixes #3700 2018-09-04 12:56:11 +01:00
Matt Westcott
81bda3bb0c Fill in release date for 2.2.2
Conflicts:
	CHANGELOG.txt
2018-08-29 14:15:44 +01:00
Tomasz Knapik
7938e81ab4 Use Django defaults for not caching admin 2018-08-23 16:34:55 +01:00
Loic Teixeira
2b076b0a84 Release note for #4719 in 2.2.2 2018-08-23 11:16:57 +01:00
David
b34b547c6a Re-establish datetimepicker localisation. Fix #4584 2018-08-22 12:01:30 +01:00
Sævar Öfjörð Magnússon
6e60469142 Convert UUID primary key to string before serializing in json. Fixes #4616. 2018-08-21 17:17:03 +01:00
Matt Westcott
48a1d51377 Release note for #4739 in 2.2.2 2018-08-21 15:14:13 +01:00
Matt Westcott
bf4ea3766a Release note for #4739 in 2.3 2018-08-21 15:10:25 +01:00
Meteor0id
cb8fe063bb depriciate url() for alias re_path() 2018-08-18 11:33:12 +02:00
Meteor0id
cb75effd11 url() is depriciated. Alias re_path()
Added important note about using url() on older versions of django, but switched the examples to re_path as to comply with Django docs for 2.0 and later.
2018-08-18 11:32:39 +02:00
Tomasz Knapik
361def81c2 Wrap deleting page into database transaction
Currently queries executed in the hooks don't run in the transaction
with the page deletion query and it's harder to write hook without
copying the whole view if you want to keep queries running in the hooks
integral with page deletion.
2018-08-16 17:18:02 +01:00
Bertrand Bordage
42caa586b4 Validates EmbedBlock URLs against providers. 2018-08-16 12:28:40 +01:00
Martey Dodoo
1247565d3d Add warning about unregistering image formats.
Add warning to documentation to warn that unregistering image formats
that are being used will create an error when viewing or editing pages.

See https://groups.google.com/forum/#!topic/wagtail/X8xTUs-2npA and
https://github.com/wagtail/wagtail/issues/1471#issuecomment-118436706.
2018-08-16 10:52:51 +01:00
Matt Westcott
7ad79c9a4a Release note for #4579 2018-08-14 17:20:57 +01:00
Matt Westcott
0baa35c52f Release note for #4730 2018-08-13 16:31:56 +01:00
Matt Westcott
5536422c4a Add release notes for 2.2.1 2018-08-13 15:14:00 +01:00
Matt Westcott
d3ad54b100 Add release notes for 2.1.3
Conflicts:
	CHANGELOG.txt
	docs/releases/index.rst
2018-08-13 15:13:05 +01:00
Matt Westcott
7ea465e694 Add release notes for 2.0.2 2018-08-13 15:12:47 +01:00
Matt Westcott
e4fe70701a Add release notes for 1.12.4 - 1.12.6 and 1.13.2 - 1.13.4
Conflicts:
	CHANGELOG.txt
	docs/releases/index.rst

Conflicts:
	CHANGELOG.txt
	docs/releases/index.rst
2018-08-13 15:12:37 +01:00
Matt Westcott
1643fb3d0c Add release notes for 1.13.3
Conflicts:
	CHANGELOG.txt
	docs/releases/index.rst
2018-08-13 12:37:47 +01:00
Matt Westcott
b9998fe015 Add release notes for 1.12.5 2018-08-13 12:37:47 +01:00
Loic Teixeira
aac3335883 Respect redirect parameter after login 2018-08-10 10:20:40 -05:00
Matt Westcott
659a57d75f Specify Elasticsearch <6.3.1 2018-08-10 14:27:07 +01:00
Matt Westcott
386378fc34 Fill in release date for 2.2 2018-08-10 12:17:19 +01:00
Karl Hobley
ebecaf6a5b Prevent search engines from indexing admin pages
According to a google search I just did, it seems a lot of people have forgotten to add ``Disallow: /admin`` in their robots.txt (or forgot to add robots.txt) at all.

Adding this meta tag into the head of all admin pages should prevent any admin pages being indexed even if this was missed.
2018-08-09 16:30:33 +01:00
Oliver Wilkerson
091ea75de7 Added a simple scale filter to image_operations. 2018-08-09 16:11:39 +01:00
Matt Westcott
6604cdfdae Update documentation to indicate Django 2.1 support 2018-08-09 00:34:38 +01:00
Matt Westcott
939e031760 Fix passwordless user creation tests for Django 2.1 and clarify WAGTAILUSERS_PASSWORD_REQUIRED docs
The behaviour of `has_usable_password` has changed in Django 2.1, such that `None` is no longer considered a 'non-usable' password: https://docs.djangoproject.com/en/2.1/ref/contrib/auth/#django.contrib.auth.models.User.has_usable_password

As a consequence of the fix applied in Django https://code.djangoproject.com/ticket/28718 , Wagtail users created without a password will now be able to complete the password reset process to gain access to Wagtail. Sites that do not want this behaviour (e.g. because those users should be using an LDAP login instead) should disable password changes via WAGTAIL_PASSWORD_MANAGEMENT_ENABLED and WAGTAIL_PASSWORD_RESET_ENABLED.
2018-08-09 00:34:38 +01:00
Matt Westcott
e28baaff72 Release notes for 2.1.2 2018-08-06 13:11:11 +01:00
Matt Westcott
7d711f16be Version bump to start work on 2.3 2018-07-31 10:55:04 +01:00
Matt Westcott
32fbbc8aed see if requirements_file: null makes readthedocs happy 2018-07-30 22:29:06 +01:00
Matt Westcott
86ce571b93 Version bump to 2.2rc1 2018-07-30 21:18:44 +01:00
Matt Westcott
7c38c5ad56 Fix typo preventing facet example from displaying 2018-07-27 12:00:38 +01:00
Matt Westcott
bf5d6e3363 Release note for #4524 2018-07-27 11:58:21 +01:00
Matt Westcott
bb8df218e5 Make checkbox/radio alignment on Firefox consistent with Webkit 2018-07-25 11:26:15 +01:00
Meteor0id
d49bc21469 one letter spelling mistake
Had been merged by the time I noticed my own mistake. Corrected 1 letter.
2018-07-14 13:29:37 +02:00
Meteor0id
ddd63bdb59 Update integrating_into_django.rst (#4686)
* Update integrating_into_django.rst

flaw in url, was still referencing depreciated method, fixed.

* Update integrating_into_django.rst

Add important notice that versions of Django earlier than 2.0 require url() instead of re_path()
2018-07-13 20:58:21 +02:00
Bertrand Bordage
a3fe8eb3b1 Improves sitemap to avoid passing site now that request is used. 2018-07-11 20:17:48 +02:00
Bertrand Bordage
88d5a8cfee Release notes for #4575. 2018-07-11 18:25:09 +02:00
Matt Westcott
f719ce1a82 Add note about not asking support questions in multiple places 2018-07-11 11:09:45 +01:00
Michael van Tellingen
bad95cf37c Optimize the querycount for the sitemap.xml page
By optionally passing the request object to Page.get_sitemap_urls() it
will now use the cached site root on the request object instead of
retrieving it for each call. This cuts the number of queries required
for a sitemap roughly in half.
2018-07-10 16:53:19 +01:00
Pomax
40981b0c65 replace my name with my name
I do not write code under my passport name, if I have to be in a changelog, please use "Pomax" =)
2018-07-10 11:20:28 +01:00
Thibaud Colas
2d9440f79c
Add release notes for #4582 (#4676) 2018-07-10 00:31:57 +03:00
kevin howbrook
cfcad4059b Update editor guide for embeds and documents in rich text, fix #4558 (#4632) 2018-07-09 10:07:03 +03:00
Matt Westcott
e53076d949 Release note for #4669 2018-07-06 17:01:43 +01:00
Matt Westcott
4f07f228b2 Fill in release date for 2.1.1 2018-07-04 15:36:49 +01:00
Matt Westcott
1fd111cf6a Fill in release date for 1.13.2 2018-07-04 15:36:08 +01:00
Matt Westcott
815b58fbda Fill in release date for 1.12.4 2018-07-04 15:36:07 +01:00
Matt Westcott
783b128fa2 Release note for #4496 in 2.1.1 2018-07-03 17:34:49 +01:00
Matt Westcott
048a4e83f1 Release note for #4496 in 1.13.2 2018-07-03 17:34:49 +01:00
Matt Westcott
7eab2ae793 Release note for #4496 in 1.12.4 2018-07-03 17:34:48 +01:00
Matt Westcott
ce4cd82bd9 Release note for #4496 in 2.2 2018-07-03 16:59:01 +01:00
Matt Westcott
3aff9f76e4 Revert "Strip Unicode NULL chars when normalizing paths"
This reverts commit 882f8f3cf8.

Conflicts:
	CHANGELOG.txt
	CONTRIBUTORS.rst
	docs/releases/2.2.rst
2018-07-03 16:45:27 +01:00
Matt Westcott
9ef8ee2d7f Release note for #4553 in 2.1.1 2018-07-03 16:10:59 +01:00
Matt Westcott
b329ed4b65 Release note for #4553 in 1.12.4 2018-07-03 16:10:21 +01:00
Matt Westcott
55ddab6d14 Release note for #4553 in 1.13.x 2018-07-03 16:10:12 +01:00
Matt Westcott
ed9a3a2d69 Pass all necessary template context to chooser view after upload validation error
Fixes #4548
2018-07-03 15:26:28 +01:00
Matt Westcott
b4a2e13cb0 Copy 1.13.2 release notes to master 2018-06-29 15:37:58 +01:00
Matt Westcott
6c3431580a Release note for #4480 in 1.12.4 2018-06-29 15:37:30 +01:00
Matt Westcott
1a4046a676 Copy 1.12.4 release notes to master 2018-06-29 15:36:43 +01:00
Matt Westcott
06d8fb0f63 Add guideline on the use of British vs American English 2018-06-27 20:39:08 +01:00
acrewdson
882f8f3cf8 Strip Unicode NULL chars when normalizing paths
After migrating a Wagtail-based site from MySQL to Postgres, we
noticed that malicious requests to the site that included percent-
encoded Unicode NULLs (`%00`) raised a `ValueError` exception that we
hadn't seen when using MySQL: `A string literal cannot contain NUL
(0x00) characters.` This appears to relate to `psycopg2`'s decision to
raise an exception in these situations, as discussed here:

    https://github.com/psycopg/psycopg2/issues/420

While newer versions of Django appear to provide some field validation
that addresses these characters, it doesn't look like Wagtail's
redirect middleware is making use of those validators, and so it seemed
reasonable to clean these characters in the context of 'normalizing'
the paths before looking for corresponding redirects -- especially
since a quick investigation on the internet suggests that U+0000 in
URLs can be used as a means of attack, and also since RFC 3986 says:

   Note, however, that the "%00" percent-encoding (NUL) may require
   special handling and should be rejected if the application is not
   expecting to receive raw data within a component.
2018-06-27 11:19:36 -04:00
Matt Westcott
0129e4ce77 Release note for #4648 2018-06-21 12:05:26 +01:00
Matt Westcott
ac84cea671 Add release note for #4612 in 2.1.1 2018-06-20 17:30:26 +01:00
Matt Westcott
fee77469b3 Release note for #4583 2018-06-20 15:57:29 +01:00
Matt Westcott
e68478777d Deprecate passing JS templates to render_modal_workflow 2018-06-20 15:35:41 +01:00
Bertrand Bordage
0a50aaf130 Typo. 2018-06-20 15:33:49 +02:00
Bertrand Bordage
806ba75497 Adds release notes for #4508. 2018-06-20 15:31:55 +02:00
Karl Hobley
fe76c11043 Implemented facet() method on search results
Add error handling for when facet field doesnt exist

Count('id' -> 'pk')

Use assertDictEqual

Fix indexing related fields using FilterField
2018-06-20 14:59:57 +02:00
Matt Westcott
8f9ca18c70 Release note for #4628 2018-06-18 17:58:06 +01:00
Matt Westcott
48b5740d03 Merge branch 'docs-divio-cloud' of https://github.com/evildmp/wagtail into evildmp-docs-divio-cloud 2018-06-18 15:45:38 +01:00
strotherscott
c5357dd271 second attempt ro clarify issue #4620 2018-06-18 15:04:41 +01:00
Andy Babic
5151c5cff2 Fix queryset ordering and add a test to confirm ordering matches expectation in all setups 2018-06-18 16:18:10 +10:00
ed@sharpertool.com
4539ced8cc Added documentation for new JS/CSS media files association with Draftail feature definitions (#4627)
Add more documentation for #4568
2018-06-17 00:13:38 +03:00
Daniele Procida
b1db6c5882 Added Divio Cloud notes to documentation 2018-06-16 15:51:06 -04:00
Benjamin Thurm
4a7e455004 Remove duplicate border radius of avatars 2018-06-15 10:47:01 +02:00
Matt Westcott
c4325fd4e9 Release note for #4516 2018-06-14 16:33:36 +01:00
Michael Harrison
e2b1c66a92 Add max_length option to redirect URL field 2018-06-14 15:02:06 +01:00
Matt Westcott
368e3b3adb Release note for #3802 2018-06-14 14:54:49 +01:00
LB
b5bfb66a11 Add note about deleting in docs 2018-06-14 14:54:49 +01:00
LB
316b25e477 use consistent terminology for 'format' + add link to explain alt text 2018-06-14 12:40:28 +01:00
LB
dd4fb080e0 rename docs image 2018-06-14 12:40:28 +01:00
Matt Westcott
ac8905b125 Release note for #3355 2018-06-11 19:02:18 +01:00
LB
b2e139bbd3 update changelog/releases for #4535 2018-06-10 12:52:10 +10:00
Matt Westcott
c3dc86c0e5 Add full documentation for WAGTAILADMIN_RICH_TEXT_EDITORS. Fixes #4555 2018-06-10 12:45:48 +10:00
Matt Westcott
b629563fb3 Remove reference to WAGTAILIMAGES_BACKENDS 2018-06-10 12:45:48 +10:00
LB
740bbb6c39 fix typos 2018-06-10 12:45:48 +10:00
LB
c886d1ab4f add missing settings 2018-06-10 12:45:48 +10:00
LB
8d2ee74be0 add reference anchors 2018-06-10 12:45:48 +10:00
Karl Hobley
7bb60644dd Add file_size field to Document 2018-06-07 15:53:57 +01:00
Matt Westcott
6f92f9a23a Add default_features step to strikethrough example 2018-06-07 11:48:55 +01:00
Karl Hobley
50bff8ad5d Changelog/release note for #4500 2018-06-04 09:57:12 +01:00
Matt Westcott
607f2ec067 Allow specifying js/css imports against Draftail features 2018-05-31 17:13:33 +01:00
LB
bcf6b6da77 Fixes breadcrumbs on ModelAdmin inspect and choose parent view (#4029) 2018-05-29 17:34:47 +01:00
Karl Hobley
b38271fd27 Changelog/release note for #4550 2018-05-29 10:31:14 +01:00
Andy Chosak
7034cd1317 Fixes RST code syntax.
32148b2 used single backticks instead of double in the release notes.
2018-05-25 12:07:40 -04:00
Andrew Plummer
24712b4d8b Images: handle all not found errors in get_file_size 2018-05-25 11:56:00 -04:00
Matt Westcott
8285ba4e69 Fill in release date for 2.1
Conflicts:
	CHANGELOG.txt
2018-05-22 16:14:47 +01:00
Matt Westcott
e8711a5bc2 Remove release notes for 2.0.2
There are no current plans to create another 2.0.x bugfix release; users on 2.0.x should upgrade to 2.1 instead.
2018-05-22 16:14:10 +01:00
Matt Westcott
8d786c3534 Reference the get_url method in Page model reference docs
Fixes #4424. As of #3354, `get_url` is the preferred way of obtaining a page URL, rather than the `.url` property;
.url is just a wrapper around get_url (which meant that the docstring for `get_url` was erroneously being picked up).
2018-05-18 15:26:06 +01:00
DanAtShenTech
53881ebd0b Small wording, spelling, grammar edits (#4543) 2018-05-18 14:59:06 +01:00
DanAtShenTech
f58e85fa0f Fix wording 2018-05-18 14:55:29 +01:00
Alex Gleason
1c7e90c3ee Change wagtailimages.Image on_delete CASCADE to SET_NULL in docs 2018-05-18 14:51:50 +01:00
Victor Miti
c38b172793 updated Django Docs Links to point to *docs.djangoproject.com/en/stable/* 2018-05-18 14:43:42 +01:00
Matt Westcott
2c8d7371b4 Remove frontend search view 2018-05-18 11:43:28 +01:00
Matt Westcott
31a1126123 Remove construct_whitelister_element_rules hook 2018-05-18 11:43:28 +01:00
Matt Westcott
3fc9ed5119 Remove old versionadded/versionchanged notes 2018-05-18 11:43:28 +01:00
Matt Westcott
5db57bac93 Version bump to start work on 2.2 2018-05-18 11:43:28 +01:00
Matt Westcott
6fed8400f1 Release note for #4531 in 2.0.2 2018-05-15 23:27:47 +01:00
Matt Westcott
7133428d92 Release note for #4531 in 2.1 2018-05-15 23:27:47 +01:00
Matt Westcott
fc46f12939 AWS_S3_FILE_OVERWRITE must be False, not True 2018-05-15 19:42:03 +01:00
Matt Westcott
a9a69bedf5 Move HelpPanel documentation to avoid redefinition of wagtail.admin.edit_handlers module 2018-05-15 14:57:07 +01:00
Matt Westcott
5ce14841d8 Remove ancient versionchanged notes 2018-05-15 14:54:41 +01:00
Kees Hink
0b3c20556d Docs: How to create test fixtures for custom Page models 2018-05-15 14:50:24 +01:00
Bertrand Bordage
32148b2b24 Changelog for #4533. 2018-05-11 19:05:55 +02:00
Matt Westcott
937254f321 Add documentation for deploying with cloud storage 2018-05-09 10:41:09 +01:00
Karl Hobley
0e19076b1c Moved changelog/release note for #4503 to version 2.2 2018-05-08 14:50:53 +01:00
Karl Hobley
10f4c0b082 Changelog/release note for #4503 2018-05-08 13:04:31 +01:00
Karl Hobley
0dec4c8f89 Update supported databases in docs 2018-05-08 11:58:31 +01:00
Matt Westcott
83df6168fc Add 2.1 to supported versions table 2018-05-04 20:45:34 +01:00
Matt Westcott
7f38c476be Release note for #4132 2018-05-04 16:19:27 +01:00
Karl Hobley
6308e6b816 Docs update for Elasticsearch 6 support 2018-05-04 15:57:36 +01:00
Karl Hobley
df4f1204e8
Fix a couple of search indexing examples 2018-05-03 12:29:35 +01:00
Andy Babic
d0670da61b Fix minor typo in modeladmin docs (#4509)
add_to_setings_menu -> add_to_settings_menu
2018-05-02 18:11:01 +03:00
Matt Westcott
fa27773d16 Release note for #4462 2018-04-23 16:26:32 +01:00
Matt Westcott
bcbfe226ee Allow disabling gravatar with WAGTAIL_GRAVATAR_PROVIDER_URL=None. Fixes #1286 2018-04-23 15:53:13 +01:00
Pierre Geier
96118cdb9a Makes it possible to set a custom Gravatar source like robohash or your own. 2018-04-23 15:53:13 +01:00
Karl Hobley
1849f0d54a Pass index name in URL to Bulk API
We currently index all items in Elasticsearch using the root bulk api
(at ``/_bulk``). This API is to allow multiple indices to be inserted
into at once. However, Wagtail inserts into one index at a time so this
is not needed. If we pass the index name as a parameter in the call to
``bulk()``, the index-specific bulk API will be used instead (at
``/<index name>/_bulk``.

The advantage of this change is it makes it possible to implement access
control by checking the URL an application is using. This is required in
order for the Bulk API to work on certain hosts (such as Divio).
2018-04-20 15:02:46 +01:00
David
e43ea79747 Add a per-user timezone setting 2018-04-20 12:06:52 +01:00
Andy Chosak
3bd3275add more tests for ordering pages with custom titles 2018-04-19 22:40:16 -04:00
Arthur Holzner
878a5beeca Add extra_footer_actions template blocks 2018-04-19 12:37:52 +01:00
pyMan
b3fa09b95e Improved 'purge_page_from_cache' to purge the url for any managed language 2018-04-18 11:28:23 +01:00
Thibaud Colas
c309753378
Expose reusable client-side code to build Draftail extensions (#4467)
* Expose Draftail package as global variable for reuse
* Expose Wagtail React components for reuse
* Expose Draftail-related React components for reuse
2018-04-18 00:27:07 +03:00
Matt Westcott
574e7ff3fa Release note for #4470 2018-04-17 12:23:24 +01:00
Matt Westcott
b743b87d2f Release note for #4469 in 2.0.x
Conflicts:
	CHANGELOG.txt
	docs/releases/index.rst
2018-04-17 12:19:38 +01:00
Matt Westcott
b704a7e188 Release note for #4469 2018-04-17 12:15:17 +01:00
Bertrand Bordage
06227a11ea Removes the temporary Kickstarter banner. 2018-04-16 17:16:05 +02:00
Bertrand Bordage
eece1654a4 Changelog for #4390. 2018-04-16 15:18:13 +02:00
Andy Chosak
d1830c0909 prevent users from navigating privileged pages
This change prevents non-admins from navigating around the Wagtail page
tree for pages that lie outside of their explorable root. Currently,
non-admins can hit any page in the tree using a URL like

/admin/pages/123/

even if they don't have any permissions over that page or its part of
the page tree.

This change adds a (temporary) redirect to requests like this, so that
users may not navigate to parts of the tree that lie outside outside of
their explorable site root, as determined by the page privileges they
have. If they try to hit a URL like the one above, they get redirected
to their explorable site root navigation page instead.

Relevant unit tests have been modified to incorporate this change.
2018-04-13 16:47:54 +01:00
Andy Chosak
5c9ff23e22 make site summary panel respect user privileges
This change modifies how the Wagtail home site summary panel displays
the number of pages on the site, and where that number links to.

Instead of showing the total number of pages on the site, the panel
should show the number of pages under the user's explorable root page
(inclusive). If the user has access to the full tree, the Wagtail root
is not counted in this total.

Previously, the site summary page link would go to the Wagtail root if
there were multiple sites in an installation, and to the site root page
for a single site. This change modifies this logic so that the link
always goes to the user's explorable root page (which may be their
explorable root page).

The unit tests for the site summary panel have been pulled out into a
new module at `wagtail.admin.tests.test_site_summary`, and augmented to
test how things work for users with different permissions.
2018-04-13 14:36:13 +01:00
Karl Hobley
17f7f70170 Added "find" API view and ability to find pages by HTML path
This implements a new "find" view for all endpoints which can be used
for finding an individual object based on the URL parameters passed to
it.

If an object is found, the view will return a ``302`` redirect to detail
page of that object. If not, the view will return a ``404`` response.

For the pages endpoint, I've added a ``html_path`` parameter to this
view, this allows finding a page by its path on the site.

For example a GET request to ``/api/v2/pages/find/?html_path=/`` will
always generate a 302 response to the detail view of the homepage. This
uses Wagtail's internal routing mechanism so routable pages are
supported as well.

Fixes #4154
2018-04-13 12:08:19 +01:00
Tom Dyson
edbfba5af3 Allow any host in development 2018-04-13 11:36:26 +01:00
Loic Teixeira
8c5b1bc7ba Update LTS support period and Django compatibility
As discussed during the core team meeting of March 28th 2018.
2018-04-13 10:14:38 +10:00
Sergey Fedoseev
63e824f100 Fixed #4423 -- Fixed background color in docs css. 2018-04-12 10:55:24 +02:00
Coen van der Kamp
3bcefe351a 4412 Position modeladmin title 2018-04-12 10:33:30 +02:00
Benoit Vogel
9a21060aff Fix Add user button label (input->button) 2018-04-12 10:24:33 +02:00
DanAtShenTech
8c686b6a6b Typo 2018-04-11 13:22:45 +01:00
DanAtShenTech
950e77d2aa Wording change requested by Matthew Westcott 2018-04-11 13:22:45 +01:00
DanAtShenTech
2f43c10e6c Wording change to have this feature appear in search results
Searching the docs for the phrases "add django model to wagtail admin" and "add model to wagtail admin" (without the quotes) did not even yield this crucial page as one of the results.  The proposed wording puts the main idea of being able to show/edit ANY model via the Wagtail admin at the top of the document and includes wording to, hopefully, have this page appear at the top for anyone searching for how to implement this functionality.
2018-04-11 13:22:44 +01:00
Karl Hobley
e809b6addd Changelog/release note for #4458 2018-04-11 10:04:27 +01:00
Sander Tuit
4e7ccdcdc9 Add icon template tag with accessibility options (PoC) (#4381) 2018-04-08 23:41:24 +03:00
Janneke Janssen
783776928d Release notes for #4398 2018-04-06 19:12:00 +02:00
DanAtShenTech
8741491313 Wording clarification 2018-04-06 16:23:04 +01:00
Matt Westcott
af7cdb4354 another typo fix 2018-04-06 16:19:49 +01:00
DanAtShenTech
a179d0c331 Fix typos
Conflicts:
	docs/reference/contrib/modeladmin/primer.rst
2018-04-06 16:19:32 +01:00
Loic Teixeira
b12a7b08bd Ensure order of headings features is consistent for HalloJS 2018-04-06 16:22:13 +10:00
Karl Hobley
724262130c Reword 1.2 release note 2018-04-05 12:13:05 +01:00
Karl Hobley
9ab54d0811 Added more words to the spelling wordlist 2018-04-05 12:13:05 +01:00
Karl Hobley
f608c67eb1 Fix capitalisation of names 2018-04-05 12:13:05 +01:00
Karl Hobley
bf3e994505 Fix capitalisation of QuerySet 2018-04-05 12:13:05 +01:00
Karl Hobley
a70b8130a5 Add quotes around code 2018-04-05 12:13:05 +01:00
Karl Hobley
a9b4b09152 Fix spelling mistakes in documentation 2018-04-05 12:13:05 +01:00
Matt Westcott
dd9bb32b69 Fix monospace formatting 2018-04-04 15:00:19 +01:00
Matt Westcott
8e71a59712 Fill in release date for 2.0.1
Conflicts:
	CHANGELOG.txt
2018-04-04 14:59:52 +01:00
Matt Westcott
3482b45716 Release note for #4138 in 2.0.1 2018-04-04 11:45:48 +01:00
Matt Westcott
6bc7fbdc82 Release note for #4138 in 2.1 2018-04-04 11:42:18 +01:00
Coen van der Kamp
7841f54fe8 ImageChooser now sets a default title based on filename. Fix #2844 (#4385) 2018-04-02 17:11:49 +03:00
Rajeev J Sebastian
35049c352a Add request parameter to edit handlers (#4382) 2018-04-02 16:51:14 +03:00
alejandrogarza
5a5e6d5d2b Added change email functionality from the account settings. Fix #4325 (#4375) 2018-04-02 15:42:46 +03:00
Bertrand Bordage
3939397850 Changelog for #4421. 2018-03-29 21:01:47 +02:00
Bertrand Bordage
0fcd6d8cc1 Improves #4421 documentation example. 2018-03-29 21:01:23 +02:00
Michael van Tellingen
c5d21a76d9 Add a new hook 'register_account_menu_item' (#4421)
* Add a new hook 'register_account_menu_item'

This new hook makes it easier for third party apps to add new buttons on
the 'my account' page in the Wagtail admin. Existing buttons are
converted to the new hooks to make the code consistent.

* Add documentation for the new register_account_menu_item hook
2018-03-29 20:48:23 +02:00
Dave Bell
b2ef833915 allow chunk_size to be set in update_index 2018-03-29 17:49:43 +02:00
Matt Westcott
626418d348 Ensure breadcrumb respects custom get_admin_display_title methods. Fixes #4353 2018-03-29 17:36:32 +02:00
Loic Teixeira
f92a890303 Update LTS imformation 2018-03-29 14:30:27 +02:00