0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

531 Commits

Author SHA1 Message Date
Rodrigo
1a2bf525f2 Add https support for scribd oembed provider (#739)
Currently scribd defaults to https for their sharing links - http still works but if you copy&paste quickly you may think it's broken
2019-07-25 14:19:07 +01:00
Matt Westcott
d6239bd5dd Fetch new translations from Transifex 2019-07-09 14:25:52 +01:00
Andrew Miller
b9816d194a Don't make assumptions about the username field
The USERNAME_FIELD exists to allow customisation. Therefore we should make an assumption that `.username` exists on the model. Instead, we need to pull the required value from the USERNAME_FIELD and add in a fallback default.
2019-07-08 20:11:14 +01:00
William Blackie
3754d34caa Search query normalisation no longer removes punctuation #5416 2019-07-04 16:53:27 +01:00
Jonny
851bd5f24d Added missing is_stored_locally() to AbstractDocument 2019-07-03 15:53:51 +01:00
jordan_bauer
0dac8f0764 added construction_hook_name to settings_menu (#5384) 2019-06-25 12:04:53 +01:00
Mikalai Radchuk
9291f95b7e
Update CONTRIBUTORS.rst 2019-06-24 14:05:48 +01:00
Fidel Ramos
41f80af5db Optimization of UserPagePermissionsProxy.revisions_for_moderation (#5311)
revisions_for_moderation() was iterating over Page instances only
to use their path attribute. The optimization uses values_list()
over the GroupPagePermission queryset to retrieve only the page
paths without having to create the model instances in memory. This
saves roughly 50% of the runtime.
2019-06-18 20:14:54 +01:00
jordan-bauer
998440cfa9 Remove buggy tab order customisations in CMS admin (#5383, #5351) 2019-06-18 12:49:16 +01:00
Eric Dyken
eba3357fd4 Adds Collections section to editor's guide 2019-06-17 10:13:49 +01:00
Andy Babic
fdd8ddc2b1 Release notes for #5373 2019-06-13 13:56:49 +01:00
Dillen Meijboom
dd1597ea37 Implemented branding title prefix customization (#5344) 2019-06-07 17:06:00 +01:00
LB Johnston
d57c7c59f3 Update changelog/contributors & release notes with recent contributions 2019-05-23 16:58:19 +10:00
Jonny Scholes
d76410f5ce
Update CONTRIBUTORS.rst 2019-05-22 20:07:32 +10:00
Thibaud Colas
70a749b10a Add release notes for #5290 2019-05-14 14:16:10 +01:00
Alex Tomkins
4891db0d89 Improve EditHandler __repr__
The string of self.form is the same as form.as_table - which is too verbose.

This updates the __repr__ of EditHandler/FieldPanel to show the class name of the form being used instead (or NoneType if it's None).
2019-05-10 15:35:52 +01:00
rinti
1b22794da2 Add correct dir attribute to html tag in admin 2019-05-10 14:47:10 +01:00
Adam
22e9e71ca7 Updated Page Chooser Panel ForeignKey
Needs a related_name
2019-05-10 14:41:09 +01:00
Matt Westcott
51d8cac6f4 Release note for #4906 2019-05-03 16:56:46 +01:00
Michael Hearn
7c9c00ab7c Don't show pages in explorer that user has no permissions to access
Partially addresses #4660
2019-05-03 11:42:38 +01:00
scil
1e55b98af0 Update performance.rst 2019-05-01 12:58:22 +01:00
Po-Chuan Hsieh
02f3ae5696 Relax pillow version restriction
It allows to build with Pillow 6.x.
2019-05-01 12:46:28 +01:00
Matt Westcott
60cac850d0 Fetch new translations from Transifex 2019-04-24 16:08:46 +01:00
Deniz Dogan
647f2c1d1d Fix Redux DevTools deprecation warning (#5231). Fix #5214 2019-04-23 15:02:53 +01:00
Matt Westcott
14cb03b539 Stop ModelAdmin from failing when filtering over a foreign key relation
Supersedes #4998
As per https://github.com/wagtail/wagtail/pull/4998#issuecomment-471005219, the implementation of `lookup_allowed` is flawed and breaks on some valid lookups while allowing invalid ones. We are therefore better off removing that validation entirely.
2019-04-12 18:56:56 +01:00
dthompson86
444744dbfe Update the_explorer_page.rst (#5220)
Fixed a typo ;-)
2019-04-12 16:32:42 +01:00
Cassidy Brooke
942979fc4e Missing step for Migrating RichTextFields to StreamField (#5207)
This generated block of code needs to stay or else there will be an error while running ./manage.py migrate. It is misleading that it is not included in this tutorial.
2019-04-12 16:20:11 +01:00
Matt Westcott
d5bc3c92d2 Fetch new translations and update config for Chinese (#3668)
* Fetch new translations from Transifex, update contributors, add new languages with >90% coverage to WAGTAILADMIN_PROVIDED_LANGUAGES
* Update transifex config to download Chinese (Simplified) and Chinese (Traditional) translations as zh_Hans and zh_Hant respectively
* Fix get-translator-credits.py to recognise 'tet' as the locale string for Tetum (which Babel doesn't)
2019-04-08 22:27:18 +01:00
Thibaud Colas
c447f75bd4
Make the page reordering UI easier to find (#5187)
* Update icon-order icon glyph
* Implement new UI for child ordering toggle
* Update documentation for page reordering
2019-03-29 14:38:05 +00:00
Matt Westcott
a98d6567dc Update core team in CONTRIBUTORS.rst 2019-03-29 12:14:09 +00:00
Kalob Taulien
062ff73665 Add documentation for the ajax_template attribute 2019-03-29 11:25:01 +00:00
Haydn Greatnews
fa5c69ee00 Call specific on parent page and breadcrumbs in page chooser
There was a small bug in the page chooser, where it would display
`page.title` instead of `get_admin_display_title` when loaded on with a
specified parent. This was because the page chooser was falling back to
Page.get_admin_display_title instead of the specific kind
2019-03-29 11:21:06 +00:00
Tom Usher
0f8a55a6ce Pass validators to FieldBlocks (#5148) 2019-03-15 18:42:08 +01:00
Md. Arifin Ibne Matin
edfd9afc1d Add more built-in rich text formats (#5141) 2019-03-15 01:39:18 +01:00
Wesley van Lee
a700e1352c Preserve non breaking white spaces in rich text processing. Fix #4996 (#5142)
Prevent the initial loading of the rich-text field to replace non-breaking white spaces with normal spaces
2019-03-14 17:31:10 +01:00
Damian
ef7bd7989e add form media to user add/edit forms (#5146) 2019-03-14 14:42:26 +01:00
Esperk
9f2e4033ea Abort unfinished ajax before firing new ajax call. Fix #4594 (#5137)
To prevent showing old results always cancel unfinished query requests before firing a new one
2019-03-13 15:44:12 +01:00
patta42
be03eeee2e Removed redundant try-except (#5123) 2019-03-07 20:55:27 +00:00
Thomas Kremmel
4e8f197a9d allow panels & edit_handler to be defined on ModelAdmin (#4900) 2019-03-06 12:26:20 +00:00
Gassan Gousseinov
d37ce9f699 routablepageurl returns urls only for default site on multisite installation (#5102) 2019-02-27 19:21:26 +00:00
Neil Lyons
f10c5cab58 Update docs for construct_homepage_panels hook (#5109)
`construct_homepage_panels` hook doesn't need a return statement.

[Looking at the code](https://github.com/wagtail/wagtail/blob/master/wagtail/admin/views/home.py#L101-L102), the user doesn't need to return a list, they need to mutate the list passed in.
2019-02-27 14:50:01 +00:00
Evan Winter
a4c3ccc464 Fix typo in docs (#5103) 2019-02-26 21:46:23 +00:00
damianos
20f47ff50e Fixed ValueError not raised (#5095)
Raised `ValueError` in `wagtail/images/utils.py` that was called but not raised

I work for Semmle and I noticed these issues using our LGTM code analyzer
https://lgtm.com/projects/g/wagtail/wagtail/alerts/?mode=tree&severity=error&ruleFocus=1505923886371
2019-02-26 19:48:16 +00:00
Karl Hobley
04861bc37d Release note / contributor for #5097 2019-02-23 14:15:07 +00:00
Matt Collins
37a472834a Update legacy wagtail.wagtailadmin paths (#5090)
Update legacy wagtail.wagtailadmin paths to wagtail.admin
2019-02-19 10:49:15 +00:00
Vladimir Knobel
a0d6dbb5f4 Update primer.rst (#5068)
path to overriding template doesn't match model name
2019-02-13 15:16:44 +00:00
pvetch
731b8fc9b4 Update third_party_tutorials.rst (#5057)
This content seemed moribund so have added some newer material and checked that the original links still work. There are probably lots of other newer examples that could be added (it might be worth weeding out some of the older content at this point too).
2019-02-08 17:06:01 +00:00
David Beitey
f881420a98 Add MEDIA_* settings to Django integration page (#5046)
This change adds the required MEDIA_URL/MEDIA_ROOT settings to this documentation page, so the page outlines they are required and gives an example if they're not already configured.
2019-01-31 12:19:42 +00:00
Asanka Lihiniyagoda
8c4b3fe669 'Parent' link in page chooser search should not navigate away (#5011) 2019-01-29 16:36:34 +00:00
Matt Westcott
67940973b5 Fetch new translations from Transifex 2019-01-25 10:38:22 +00:00
Matthew Linares
a0b4efd414 Recipe: automatic redirect creation on url edit (#5002) 2019-01-24 14:06:44 +00:00
aidarbek
6890f8ef76 Removing confirmation of publishing from documentation (#5006) 2019-01-24 12:18:47 +00:00
frmdstryr
5fcaa64d81 Avoid a pop from an empty list in HTMLToContentStateHandler (#5004) 2019-01-24 12:09:33 +00:00
Mukesh
fa5deb6b44 More informative error for invalid values passed to |richtext (#4971)
Fixes #4958
2019-01-10 12:35:12 +00:00
Matt Westcott
5f0fa624f9 Add Thijs Walcarius to contributors 2019-01-10 11:38:33 +00:00
Matt Westcott
e224d0f3a9 Fetch new translations from Transifex 2018-12-19 15:13:00 +00:00
Matt Westcott
d3b6bf99c2 Fetch new translations from Transifex 2018-12-06 16:54:14 +00:00
Matt Westcott
23c02ecfa1 Release note for #4924 2018-11-30 11:27:35 +00:00
Nick Travis
469abe60f3 fixes #4928 remove deprecated references 2018-11-28 11:06:29 +00:00
Hillary Jeffrey
8fd54fd71c Catch redirects that omit a destination link or point to a page with no routable URL (#4836)
Fixes #4815
2018-10-31 19:21:07 +00:00
Noah B Johnson
0dacda9133 Added handling for null last login on user list page 2018-10-31 17:46:23 +01:00
Seb
aa2a973382 Ordr collection listings by name (#4874) 2018-10-31 11:29:49 +00:00
Matt Westcott
e2acd014b6 Fetch new translations from Transifex 2018-10-28 17:58:06 +03:00
Mikalai Radchuk
a0a58d8396 Adds release notes for #4850 2018-10-28 17:28:53 +03:00
Matt Westcott
fba4f4de4c Add gmmoraes to contributors 2018-10-28 12:34:03 +03:00
Scott Cranfill
f1148e7f76 Address more feedback on new welcome page 2018-10-27 19:10:31 +03:00
Dzianis Sheka
70a9a5faf7 Fix help text positioning to avoid text cutting with narrow field (#4855, #3522) 2018-10-27 18:43:46 +03:00
عبدالعزيز الفهيقي
88513b8409 support 3.7 in Dockerfile and add comments 2018-10-27 14:15:29 +03:00
Stas Rudakou
ff50c07934 Add tests for frontend_cache's HTTPBackend.purge (#4851)
* Add frontend_cache::TestBackendConfiguration::test_http that covers HTTPBackend::purge
* Add test cases for `frontend_cache::HTTPBackend::purge` that check network issues
2018-10-27 13:23:58 +03:00
yihuang
fa9e5318b6 add missing verbose_name_plurals 2018-10-27 13:15:23 +03:00
Brady Moe
95333ba8ec returns content_types as a list instead of dict_values 2018-10-27 12:34:29 +03:00
Matt Westcott
1d442eb26d Fetch new translations from Transifex 2018-10-23 15:37:14 +01:00
عبدالعزيز الفهيقي
b69cf7a194 update CONTRIBUTORS.rst
this is me with my first name
2018-10-23 15:51:49 +02:00
Jorge Barata
8161d7c14c Fix get_permission_helper_class documentation typo 2018-10-16 11:29:05 +01:00
Matt Westcott
b15c2c92d2 Fetch new translations from Transifex 2018-10-11 14:07:41 +01:00
Matt Westcott
56801cc0ce Release note for #4788 2018-10-11 12:46:21 +01:00
Matt Westcott
a7fd9a136e Update core team list 2018-10-11 12:22:04 +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
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
Matthew Schinckel
e05dc99486 Prevent the use of a global variable. 2018-08-28 16:39:12 +01:00
Oliver Wilkerson
091ea75de7 Added a simple scale filter to image_operations. 2018-08-09 16:11:39 +01:00
Matt Westcott
a551b9a677 Fetch new translations from Transifex 2018-08-06 13:11:23 +01:00
Ryan Verner
a657a75cd7 Fixes Django 2.1 breaking changes; QUERY_TERMS & auth_views.login() 2018-07-31 18:49:00 +01:00
Matt Westcott
82b87f3989 Fetch new translations from Transifex 2018-07-30 17:29:50 +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
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
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
6c3431580a Release note for #4480 in 1.12.4 2018-06-29 15:37:30 +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
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
Matt Westcott
e1a0fc1fab Add Strother Scott to contributors 2018-06-18 15:07:05 +01: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
Benjamin Thurm
4a7e455004 Remove duplicate border radius of avatars 2018-06-15 10:47:01 +02:00
Karl Hobley
b38271fd27 Changelog/release note for #4550 2018-05-29 10:31:14 +01:00
Andrew Plummer
24712b4d8b Images: handle all not found errors in get_file_size 2018-05-25 11:56:00 -04: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
a63988ac75 Fetch new translations from Transifex 2018-05-16 13:04:44 +01:00
Matt Westcott
6fed8400f1 Release note for #4531 in 2.0.2 2018-05-15 23:27:47 +01:00
Matt Westcott
b4a9097f34 Update translator credits 2018-05-04 20:29:48 +01:00
Matt Westcott
fa27773d16 Release note for #4462 2018-04-23 16:26:32 +01:00
David
e43ea79747 Add a per-user timezone setting 2018-04-20 12:06:52 +01:00
h.zeinstra
a03c310858 changes message.error to message.validation_error 2018-04-19 16:16:43 +01: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
Sergey Fedoseev
63e824f100 Fixed #4423 -- Fixed background color in docs css. 2018-04-12 10:55:24 +02: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
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
Matt Westcott
626418d348 Ensure breadcrumb respects custom get_admin_display_title methods. Fixes #4353 2018-03-29 17:36:32 +02:00
Mike Kamermans
59506ae69f Update jquery-datetimepicker dependency to make Wagtail more CSP-friendly (unsafe-eval). Fix #4329 (#4337)
* Update jquery-datetimepicker to 2.5.19

- Fixes an `eval()` CSP violation
- includes touch scroll fix from commit #87a7a7 (L909)
2018-03-22 23:51:37 +02:00
Thibaud Colas
eb9ad812f7
Update my contributing info 2018-03-22 23:43:31 +02:00
Tony Yates
cab90e5d1b Adding external link with selected text now includes text in link chooser. Fix #4328 (#4366) 2018-03-21 00:35:41 +02:00
DanAtShenTech
72e1491f39 Fix typo 2018-03-16 19:54:59 +01:00
Karl Hobley
26d452c4bb Release notes for #4384 2018-03-16 15:16:40 +00:00
Kevin Chung
d188576af8 Adds a new HelpPanel (#4374) 2018-03-15 16:46:34 +01:00
Caspowned
977dbae585 Rewrite password change feedback message. Fix #4200 (#4364) 2018-03-15 00:53:33 +01:00
Sebastian Brestin
e8ee632b29 Permission checking consistency #4305 2018-03-05 17:18:16 +00:00
Todd Dembrey
09f8a4f38a Draftail was failing to initialise with defined options in settings 2018-03-05 16:04:02 +00:00
Matt Westcott
530b8b32ec Fetch new translations from Transifex 2018-02-27 19:29:55 +00:00
Michael Harrison
4da0bd7bd2 Improve redirect links search in the admin 2018-02-27 16:08:11 +11:00
Matt Westcott
501aa5ab63 Fetch new translations from Transifex 2018-02-16 11:31:07 +00:00
Dan Dietz
54ad64e431 Added LineBreakHandler to resolve missing line breaks 2018-02-15 17:36:59 +00:00
Julian Gallo
9e67741f2b Fix position of action buttons in image editor on mobile (#3771) 2018-02-14 15:26:35 +02:00
Carlo Ascani
8c0170bb62 Animate the chevron icon when opening sub-menus in the admin (#3069) 2018-02-14 14:06:19 +02:00
Ben
6412bad624 Persist tab hash in URL to allow direct navigation to tabs in the admin interface (#4231)
Save the hash when clicking on a tab and select the tab if loading a page with a hash in it. This allows for giving direct links to a specific tab.

![tabs](https://user-images.githubusercontent.com/272675/35627540-c8e22f36-065e-11e8-848e-78924335a146.gif)

Fixes wagtail/wagtail#4111
2018-02-14 11:37:44 +02:00
Dave Bell
99e9d5468a Use Rendition in image_to_html 2018-02-12 20:24:17 +00:00
Dário
55580d96e8 Embed Docs: fix broken link (#4270) 2018-02-12 10:15:22 -05:00
Mary Kate Fain
6c7d0abad7 Add on_delete to BlogPageTag model 2018-02-08 11:52:45 +00:00
J Rob Gant
218a47e802 Remove unreachable code from slugurl tag. 2018-01-29 18:55:44 +00:00
Matt Westcott
9ef1e4883c Fetch new translations from Transifex 2018-01-26 16:24:14 +00:00
Matt Westcott
5fc191b116 Simplifies edit handlers by removing redundant classes.
This also allows to provide some missing arguments to panels like PageChooserPanel.
2018-01-13 17:21:36 +00:00
Chris Bledsoe
3d945d0255 extract get_template method to allow overriding template on instances of blocks
to allow for customization and make the Block type mirror how the Page model allows for a get_template method to override it.

add per contrib guidelines
2018-01-11 16:03:22 +00:00
Bruno Alla
be164048b8 Add setting to disable notification to superusers -- Fixes #3969
WAGTAILADMIN_NOTIFICATION_INCLUDE_SUPERUSERS, default to True
If set to False, superusers do not receive moderation notification,
only moderators do.
2018-01-10 17:26:02 +00:00
Matt Westcott
c10e050076 Add misraX to contributors 2018-01-02 23:37:56 +00:00
Philipp Bosch
a9f51a09c4 [Docs] Fix imports in "Buttons with dropdown lists" hooks example 2017-12-05 00:12:06 +00:00
Janneke Janssen
91d1150fc4 Release notes for #3592 2017-12-01 16:24:05 +01:00
Matt Westcott
9610c2d3af Make InlinePanel heading independent of label. Original commit by @Adrian-Turjak 2017-11-30 12:08:19 +00:00
Matt Westcott
1035a83b80 Add LB Johnston to core team 2017-11-15 21:52:37 +00:00
Martin Sandström
345b527ca2 Fix syntax error in ImageRenditionField example 2017-11-12 18:07:38 +00:00
Matt Westcott
6dc89c1f7f Remove Tim Heap from core team (hopefully only temporarily...) 2017-11-08 11:00:23 +00:00
Matt Westcott
f5e800f5e5 Add Jon Carmack to contributors 2017-11-03 16:56:16 +00:00
Matt Westcott
cc64f40237 Update CONTRIBUTORS.rst with current core team 2017-11-02 10:41:13 +00:00
Tim Heap
62aa2b2726 Update Tim Heap's contributor note
I've changed employers, but still contribute to Wagtail.
2017-11-01 09:48:58 +00:00
Matt Westcott
9ec8daba43 Update slugurl documentation with a "real-world" example.
Thanks to @rifuso for the suggestion!
2017-10-23 12:40:07 +01:00