Karl Hobley
2b33547dc0
Defer specific page fields in the explorer
...
We have a client site which has many quite heavy article pages. We found
that the server used a lot of memory on this particular view as it was
pulling in all the content for 50 of these pages and not even using it.
This commit prevents Wagtail from loading any specific fields in the
explorer. Any fields required by URL generation logic will be loaded at
a point in the future.
2018-06-11 17:49:31 +01:00
Karl Hobley
e5a4208774
Add rudimentary benchmarking code and a couple of benchmarks
...
This commit implements a '--bench' argument for runtests.py. When
specified, this runs a couple of special "benchmark" tests that are
specifically created for testing performance of the explorer page.
It's very rudimentary at the moment as I needed something quickly to
implement the performance improvement in this PR. It gets the job done
though.
2018-06-11 17:49:31 +01:00
Karl Hobley
c24fabe1d5
Added "defer" keyword argument to PageQuerySet.specific()
...
Setting this to True will tell Wagtail to defer all the specific fields
for each page. Each page will still be loaded in their correct class,
but only the fields defined on Page will be loaded in the initial query.
This gives a performance improvement when dealing with pages that have large
amounts of body text which we don't need to display in the admin.
Values of specific pages will continue to work, but will add extra
queries at the point of accessing them.
2018-06-11 15:38:08 +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
ea7237ec9f
Moved some documents tests to correct place
2018-06-07 16:10:54 +01: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
Matt Westcott
fe99aca27b
Move page chooser widget JS from _editor_js.html into widget media
2018-06-04 15:03:09 +01:00
Matt Westcott
d14afdc2c3
Ensure that group add/edit forms import form media js/css
2018-06-04 15:03:09 +01:00
Matt Westcott
994e793773
Move chooser widget JS from insert_editor_js hook into widget media
2018-06-04 15:03:09 +01:00
Matt Westcott
67795603fb
Ensure that all templates currently including _editor_js.html are outputting form media
...
This ensures that if they're relying on _editor_js.html to provide form widget JS,
it won't break when that JS code is moved into form widget media.
2018-06-04 15:03:09 +01:00
Karl Hobley
590d848047
Tweaked wording of error message ( #4581 )
2018-06-04 15:02:31 +01:00
Karl Hobley
50bff8ad5d
Changelog/release note for #4500
2018-06-04 09:57:12 +01:00
Samir Shah
491c51f2c2
Make slugurl template tag site-aware.
2018-06-04 09:54:45 +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
Dmitry Vasilev
73cca8cbed
Optimize PNGs as well
2018-05-29 10:28:08 +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
Bertrand Bordage
a541f2c918
Fixes the order of preferred languages for uppercase languages.
2018-05-23 11:46:34 +02:00
Bertrand Bordage
03d361b055
Adds missing i18n & avoids an heretic non-method class function.
2018-05-23 11:45:43 +02:00
Matt Westcott
44476de07e
Fetch new translations from Transifex
2018-05-22 16:14:59 +01: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
dcab2c2163
Rotate deprecation warnings for 2.2
...
Leave RemovedInWagtail22Warning in place for now, pending a decision on what to do with the deprecated methods on `Elasticsearch2SearchBackend`
2018-05-18 11:43:28 +01:00
Matt Westcott
2c8d7371b4
Remove frontend search view
2018-05-18 11:43:28 +01:00
Matt Westcott
d1b293da75
Remove deprecated parameters on BaseSearchBackend.search
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
b391724318
Rotate deprecation warnings for 2.1
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
a63988ac75
Fetch new translations from Transifex
2018-05-16 13:04:44 +01:00
Matt Westcott
e84b4a06cd
Revert "Issue 4334: Excluded fields are also excluded when a panel set is exp… ( #4363 )"
...
This reverts commit 6b272c43e4
.
Conflicts:
wagtail/admin/tests/test_edit_handlers.py
2018-05-16 11:44:14 +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
Jérôme Lebleu
fab4dde665
Fix document usage url on the edit page
2018-05-15 23:03:13 +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