Wykres commitów

2665 Commity (b9c470df37ee971ad6d60827e631e36897b168e6)

Autor SHA1 Wiadomość Data
Sergey Fedoseev b9c470df37 Output form media on add/edit/chooser document forms with custom models
Similar to eaad013081, but for Document
2019-10-02 12:54:27 +01:00
jacobtoppm dd5cbd8d7a Add new docs page 'Changing rich text representation' (#5579)
* Add new docs page 'Changing rich text representation' describing how to subclass Format to provide a custom image html representation in rich text
2019-10-02 12:12:38 +01:00
jacobtm daba83aab1 Add a note on 'Previewing and Submitting for Moderation' page about potential disabled moderation 2019-10-02 10:48:15 +01:00
Mike Janger 747b5402d2 Changed height's description to match width's. (#5593) 2019-10-02 09:32:16 +01:00
Sergey Fedoseev bbec0c8bc8 Make DraftailRichTextArea be considered as visible (#5583) 2019-10-01 17:31:23 +01:00
Matt Westcott 9a21e79ff8 Add role="table" to TableBlock output
As per https://twitter.com/SaraSoueidan/status/1177622630763028480, certain browsers apply heuristics to decide whether `<table>` elements exist for layout or data purposes, and adjust the behaviour of their accessibility features accordingly. Given that TableBlock intentionally doesn't allow markup within cells, we can be reasonably sure that any tables created with it are genuine data tables, and should therefore indicate that using `role="table"`.
2019-10-01 17:27:32 +01:00
Matt Westcott 44a1e6f9f8 Eliminate dependency on default User model from style guide
Fixes #5442. Building a User object for david@torchbox.com may cause problems if a custom user model is in use, and is redundant anyhow because there's no longer a registered gravatar for that email - we should just hard-code the default blank avatar instead.
2019-09-29 09:10:17 +10:00
Brian Whitton 34f4ab8a3f allow image page sizes to be configurable (#5568) 2019-09-25 10:49:57 +01:00
jacobtm a7b470bc9d Add ability to hide 'Submit for Moderation' in action menu using setting WAGTAIL_MODERATION_ENABLED. When set to false, SubmitForModerationMenuItem method is_shown returns false (#5574) 2019-09-24 16:28:47 +01:00
Dawn Wages 1b2dadc429 Update configuration.rst (#5576) 2019-09-23 12:06:16 +01:00
Matt Westcott e87dcaf015 Release note for #5296 2019-09-23 01:25:23 +01:00
Matt Westcott 76d72a36c3 Documentation tweaks for WAGTAILDOCS_SERVE_METHOD
As suggested by @chosak - https://github.com/wagtail/wagtail/pull/5296#discussion_r324252497 , https://github.com/wagtail/wagtail/pull/5296#discussion_r324257167
2019-09-21 18:53:48 +01:00
Tobias McNulty 40fa3956f5 add WAGTAILDOCS_SERVE_METHOD setting to allow serving files from underlying storage 2019-09-21 18:53:48 +01:00
Dawid Bugajewski 90b7a3b0d3 Fix class selector mapping (#5571)
The markup is wrong which results in code not working properly.
2019-09-20 10:18:55 +01:00
Matt Westcott 88a688afe7 Fill in release date for 2.6.2 2019-09-19 15:05:20 +01:00
Kiril Staikov 4b692d67d5 Fix soundcloud embed regex 2019-09-13 12:33:40 +01:00
Matt Westcott 0d4f670625 Release note for #5559 2019-09-11 13:00:11 +01:00
Edy b9cfc24b37 Fixed broken email header when hosting static files remotely (#5543)
Fixes #5525
2019-09-06 12:13:07 +01:00
Colin Klein 33204be105 Updated the block id initialization (#5552)
The current block id generation only sets the id as the block is serialized for storage in the database, which means that the id is unavailable in the block until it is pulled back from the database. In my debugging this caused the id to be set to new values up to 3 times when saving a brand new page (each time with a new id).
This updated logic applies the new id to the actual block which makes it available right away and prevents the id from being regenerated.
2019-09-06 11:21:46 +01:00
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
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
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
Kalob Taulien 4ba1806cdf Add telephone number links to release notes 2019-08-22 08:18:41 -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 227221f7fb Update docs with new locations of wagtail.admin.utils definitions 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
Matt Westcott 311c007656 Deprecation note for dummy_request 2019-08-08 12:50:39 +01:00
Martey Dodoo bb4e2fe2df Add labels to snippet bulk edit checkboxes for screen reader users. Fix #5328 (#5463) 2019-08-05 18:12:08 +01:00
Matt Westcott 6bc94ee56d Fill in release date for 2.6.1 2019-08-05 15:18:38 +01:00