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

9322 Commits

Author SHA1 Message Date
Janne Alatalo
dd0bb9a870 Add setting to disable email management
This commit adds WAGTAIL_EMAIL_MANAGEMENT_ENABLED setting that defaults
to True, but when disabled, hides the 'Change email' button in account
management view, and disables the associated route. This is useful when
using external authentication method like LDAP or OpenID Connect where
email management is handled elsewhere.

Wagtail already includes WAGTAIL_PASSWORD_MANAGEMENT_ENABLED setting.
This is almost exact copy of that implementation.
2019-09-04 10:25:35 +01:00
Dani Hodovic
af4f27aa3e Fix compatibility with pylint-django (#5538)
It's not possible to use wagtail in a project with pylint and the
pylint-django plugin.

Pylint-django does not work with foreign keys that are referenced by
their string names. See: https://github.com/PyCQA/pylint-django#known-issues

If we simply replace the string name with the foreign-key class, linting
on wagtail projects is fixed.

Also see:
https://github.com/PyCQA/pylint/issues/2995
https://github.com/PyCQA/pylint-django/issues/241
2019-09-03 10:14:00 +01:00
Sarath Kumar Somana
7fcd6e6890 Add SECURITY.md (#5536)
Adds security.md to be consistent with github's interface
2019-09-03 10:11:05 +01:00
Bojan Mihelac
df1608b080 fix: Language chosen in user preferences persists on subsequent requests (#4310) 2019-09-02 19:34:06 +01:00
Matt Westcott
6a1a46b612 Add note about CurrentSiteMiddleware incompatibility
As per https://github.com/wagtail/wagtail/issues/2840#issuecomment-522697801
2019-09-02 16:18:41 +01:00
Karl Hobley
349a23b8d4 Add wagtail nightly to readme 2019-09-02 13:20:54 +01:00
pvetch
3d7f2947c0 Update CONTRIBUTORS.rst
Correction to contributor's name per request by email
2019-08-30 09:58:38 +01:00
Robert Rollins
ef4b37cf5d Changed Snippet Chooser AJAX delay from 50ms to 200ms, to remove laggy typing. (#5439)
50ms is the equivalent of about 200 words per minute, so typing slower than that
meant that the javascript would send an AJAX request between every single
keystroke. This change makes the javascript wait for 200ms between keystrokes,
which lets you finish typing the word you're looking for before it sends an AJAX
request.
2019-08-29 14:13:23 +01:00
kevinhowbrook
7db44c71b3 Break listing titles by word so action buttons are visible on smaller screens (#5429) 2019-08-29 14:06:16 +01:00
kevinhowbrook
48c82516db Allow content to define the tab width on xs screens to stop cutting off text (#5392) 2019-08-29 12:27:32 +01:00
Zac Connelly
a19571db7a update docs for TabbedInterface (#5374) 2019-08-29 11:23:13 +01:00
Matt Westcott
e263aaf749 Update release schedule info and move dates table to the wiki
Document release schedule in readme
2019-08-23 13:15:24 -04:00
Matt Westcott
6feb29d54a Release note for StreamField design update (#5476) 2019-08-23 15:53:48 +01:00
Bertrand Bordage
1a4c157ec8 Updates to react-streamfield 0.9.5. 2019-08-23 14:55:27 +01:00
Bertrand Bordage
ec60b02ea0 Updates broken JS tests. 2019-08-23 14:55:27 +01:00
Matt Westcott
ee253d0de5 Fix streamfield tests for updated markup 2019-08-23 14:55:26 +01:00
Matt Westcott
268f33ea11 Update list / struct / stream block markup to match react-streamfield CSS 2019-08-23 14:55:26 +01:00
Matt Westcott
725b01c809 Replace streamfield CSS with react-streamfield CSS 2019-08-23 14:55:26 +01:00
Kalob Taulien
05f129c8f5
Updated contributors, release notes & changelog
Updated contributors, release notes & changelog for telephone links in Draftail
2019-08-22 08:53:53 -06:00
Kalob Taulien
4ba1806cdf Add telephone number links to release notes 2019-08-22 08:18:41 -06:00
Kalob Taulien
f227ec0a82 Updated contributors & changelog 2019-08-21 20:01:25 -06:00
Kalob Taulien
7b2e499af0
Add support for phone links in rich text
Add support for phone links in rich text
2019-08-21 19:46:09 -06:00
Mikael Engström
7e7ca39821
Merge branch 'master' into support-phone-number-links 2019-08-21 21:36:12 +02:00
Pavel Denisov
d6e4072e26 Remove Unidecode from postgres_search. Fix #5001 (#5514) 2019-08-20 16:12:35 +01:00
Sanyam Khurana
f9753f1f23 fix(docs/customization): Add models import to fix example (#5520) 2019-08-20 11:57:14 +01:00
Sergey Fedoseev
94be338cbd Fix mention of non-existing PageLinkHandler.get_identifier
Refs #5184
2019-08-20 11:54:43 +01:00
Matt Westcott
9be694b508 Update references to wagtailadmin in comment 2019-08-19 18:58:56 +02:00
Matt Westcott
96c1152eab Make try/catch AttributeError less all-encompassing 2019-08-19 18:58:56 +02:00
Matt Westcott
3502c38804 Update wagtail.admin.utils and wagtail.admin.decorators imports to new locations. Fixes #5507 2019-08-19 18:58:56 +02:00
Matt Westcott
a92d81be0c Fix MovedDefinitionHandler deprecation warnings to point to the import location 2019-08-19 18:58:56 +02:00
Matt Westcott
227221f7fb Update docs with new locations of wagtail.admin.utils definitions 2019-08-19 18:58:56 +02:00
Matt Westcott
3a44de4d2b Move get_site_for_user to wagtail.admin.navigation 2019-08-19 18:58:56 +02:00
Matt Westcott
eabe8ae47a Move email functions from wagtail.admin.utils to wagtail.admin.mail 2019-08-19 18:58:56 +02:00
Matt Westcott
e1c9c9ea6a Move authentication-related functions from wagtail.admin.decorators to wagtail.admin.auth 2019-08-19 18:58:56 +02:00
Matt Westcott
fdfab0e28d Move authentication-related functions from wagtail.admin.utils to wagtail.admin.auth 2019-08-19 18:58:56 +02:00
Matt Westcott
5b1211cb6a Move model-related functions from wagtail.admin.utils to wagtail.admin.models 2019-08-19 18:58:56 +02:00
Matt Westcott
2583a886c8 Move locale-related functions from wagtail.admin.utils to wagtail.admin.locale 2019-08-19 18:58:56 +02:00
kevinhowbrook
31e3dab4ec Allow users to change their first and last name 2019-08-18 17:08:52 +10:00
Mikalai Radchuk
d2d8b2c9e3 Fixes layout for the FileField 2019-08-18 16:55:36 +10:00
Matt Westcott
dc780c5bb1 Fix failing tests due to different HTML escaping in Django 3.0
- Fix password reset tests
- Fix test for invalid-slug message
- Update changelog/release notes
2019-08-18 16:40:37 +10:00
Matt Westcott
34c1b4ccbe Upgrade django-taggit to 1.x
django-taggit 1.x drops Python 2.x support and thus the dependency on django.utils.six; this is a prerequisite for supporting Django 3.0.
The signature of TaggableManager.value_from_object has changed to return a list of Tags (previously it was a QuerySet of TaggedItems) and so search indexing and comparison need to be updated accordingly. There is a corresponding fix to ClusterTaggableManager in django-modelcluster 5.0.
2019-08-18 16:33:02 +10:00
Coen van der Kamp
525cf5922e Update Changelog 2019-08-18 16:12:14 +10:00
Iman Syed
794d40b86b Add ability to create anchor link tab within rich text link
- add tests

- Update changelog & release notes
2019-08-18 15:56:20 +10:00
Jonathan Liuti
2de92f045c Upgrade minimum 6.x release for Elasticsearch to 6.4.0
Fix doc and test on ES6 python client compat

This commit changes the statement that version < 6.3.1 of the
elasticsearch python client should be used to instead state
that 6.4.0 is fine.

It also update the tests to reflect the statement.

Initially the `update_all_types` argument has been used to work
around an issue described in:
https://github.com/wagtail/wagtail/issues/2968

This argument was removed in elasticsearch-py 6.3.1 and making
use of it was raising an error.

With 6.4.0 nothing is raising anymore.
2019-08-18 15:37:11 +10:00
Matt Westcott
eaad013081 Output form media on add/edit/chooser image forms with custom models
* Add tests for custom image on multiple image uploader
* Output form media on image add/edit views
* Output form media for 'add image' form within image chooser modal
Note: this won't work reliably if the media is hosted on a CDN, because script tags inserted as part of a jQuery DOM insertion (as modals are) are loaded asynchronously and not guaranteed to complete loading before inline scripts are run. It's better than not having the includes there at all though...
2019-08-18 15:20:03 +10:00
rjpruitt16
f7ff6d39c4 Add caption field to TableBlock
* Create caption field added to table block widget

Caption allows for users users with screen readers to be
able to understand the contents of a table.

* Fixed bugs in javascript and typos

* Updated documentation and change log

* Fixed table caption bug and requested pr edits

* Fixed table caption bug and request pr edits

* Removed changes in changelog.txt

* Fixed bug and requested PR edits
2019-08-14 22:17:25 +02:00
Samir Shah
0ee07dddff Fix pageurl and slugurl handling of situations where request.site is null (#5501) 2019-08-14 12:07:12 +01:00
Andy Chosak
7c3418f99e Properly check permissions when viewing revisions (#5490)
Currently any user with any page permission can view any page revision.
This commit fixes that, and ensures that the user has publish or edit
permission on the page before showing a page revision. If not, the user
is presented with a 403.

This maintains the current behavior if the user has no page permissions,
which is to redirect to the admin home page.

New tests have been added to cover these changes.

Fixes issue 5426.
2019-08-12 16:22:28 +01:00
Andy Chosak
52b01cda67 Don't use page admin title when editing rich text (#5491)
When editing a rich text field and entering a link to a page whose Page
type overrides get_admin_display_title, the custom admin display title
is used both when browsing to select the page to link to and also when
viewing the rich text editor.

The first behavior is consistent with how custom admin display titles
are used throughout the admin, but the second behavior is not. The
Wagtail user should be able to use the rich text field as a reasonable
preview of what the rendered content will look like for the end user. To
do this, the "real" page title should be used, not the admin one.

This commit alters the data that gets passed to the rich text editor so
that its title is the real page title and not the admin one.

Fixes issue 5131.
2019-08-12 16:10:25 +01:00
Matt Westcott
ada652f19f Release note for #5427 2019-08-08 12:54:37 +01:00