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

8396 Commits

Author SHA1 Message Date
Karl Hobley
0d7faef513 Removed root content type name from document ids
This hasn't been required since we separated indices per root content
type for Elasticsearch 2 support.
2018-05-04 15:57:36 +01:00
Karl Hobley
09c8843b7f Rename _partials to _edgengrams (ES6 only) 2018-05-04 15:57:36 +01:00
Karl Hobley
24edeb39b0 Give all documents the same type name
ES6 no longer supports multiple types in the same index
2018-05-04 15:57:36 +01:00
Karl Hobley
feeeb6410f Replaced _all field with custom field 2018-05-04 15:57:35 +01:00
Karl Hobley
135a62051b Added Elasticsearch 6 backend 2018-05-04 15:57:35 +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
a98f7dd03a Add warning when failing to delete old avatar file 2018-04-23 15:54:56 +01:00
Matt Westcott
ad7bf892eb Don't override MEDIA_ROOT for avatar tests 2018-04-23 15:54:56 +01:00
Matt Westcott
651af6370f Use <button> for submit button as per https://github.com/wagtail/wagtail/pull/4462#pullrequestreview-111174303 2018-04-23 15:54:56 +01:00
Matt Westcott
9d11a6ba29 Delete old avatar when uploading new one 2018-04-23 15:54:56 +01:00
Matt Westcott
70aea60e11 Improve layout of avatar upload page 2018-04-23 15:54:55 +01:00
Matt Westcott
4a9326724d Remove 'clear' option from avatar upload 2018-04-23 15:54:55 +01:00
Matt Westcott
a3bf84fc3b Remove avatar_choice field from UserProfile 2018-04-23 15:54:52 +01:00
Matt Westcott
ac038c3deb Remove logic for deleting old avatars
This logic was broken; it deleted the existing file on EVERY save, regardless of whether that save was in fact setting a new one
2018-04-23 15:53:14 +01:00
Matt Westcott
b25bf0c6bd Ditch user_profile.get_avatar_url and ignore avatar_choice when locating avatar
Avatars are now sourced from the uploaded file if available, falling back on gravatar (if enabled and email address is non-empty), falling back on the default mystery-man icon. This restores the old behaviour of using gravatar by default for new users.
2018-04-23 15:53:13 +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
Matt Westcott
f81c7d619c Consistently use the gravatar 'mystery man' as fallback, regardless of whether gravatar is in use
The .svg had various design issues (didn't follow the square avatar design adopted in #2805, was aligned too low in the menu footer, and had a transparent background leading to grey-on-teal ugliness on the homepage).
2018-04-23 15:53:13 +01:00
Matt Westcott
ff6ca55b12 Move avatar tag into wagtailadmin_tags 2018-04-23 15:53:12 +01:00
Daniel Chimeno
5b8ca7d7e7 first working attempt to make gravatar optional 2018-04-23 15:53:06 +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
Matt Westcott
0aced66fe3 fix isort 2018-04-20 12:50:59 +01:00
David
e43ea79747 Add a per-user timezone setting 2018-04-20 12:06:52 +01:00
Matt Westcott
c82b6835a0 Add a meaningful error message for invalid arguments to pageurl (#4228) 2018-04-20 09:02:29 +02:00
Andy Chosak
3bd3275add more tests for ordering pages with custom titles 2018-04-19 22:40:16 -04:00
Matt Westcott
7818edf758 Use specific page objects on reorder listings with <100 items 2018-04-19 22:33:47 -04:00
h.zeinstra
a03c310858 changes message.error to message.validation_error 2018-04-19 16:16:43 +01:00
Karl Hobley
8503d1c365 Convert login/logout to class-based views 2018-04-19 15:03:56 +01:00
Karl Hobley
ea6a994280 Convert password reset to class based views 2018-04-19 15:03:55 +01:00
Arthur Holzner
878a5beeca Add extra_footer_actions template blocks 2018-04-19 12:37:52 +01:00
Bertrand Bordage
2bf3110ea1 Prevents postgres_search from adding multiple index_entries managers. 2018-04-18 22:29:58 +02: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
443503d145 Fix non-model form fields being compared. Fixes #3737 2018-04-17 12:21:12 +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
Matt Westcott
63fb483efb Restore ability to use non-model fields with FieldPanel
This feature is documented in http://docs.wagtail.io/en/v1.11.1/advanced_topics/customisation/page_editing_interface.html but was broken by the EditHandler refactor #3810 - see https://github.com/wagtail/wagtail/pull/4053#issuecomment-380594092
2018-04-17 12:03:14 +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
codie
e49e24fa2d Improve Domain Selection for Multiple Sites (#4390)
* improve domain selection

* add test

* add test for both sites set in request

* add Codie to contributors

* revert line refactor

* refactor test

* use better sorting
2018-04-16 15:13:11 +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
Matt Westcott
a977f82d83 isort fix 2018-04-13 12:22:29 +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
Matt Westcott
8abceeb166 Allow html5lib 1.x. Fixes #4454 2018-04-12 11:56:50 +01:00