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

37 Commits

Author SHA1 Message Date
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
Matt Westcott
e87dcaf015 Release note for #5296 2019-09-23 01:25:23 +01:00
Kiril Staikov
4b692d67d5 Fix soundcloud embed regex 2019-09-13 12:33:40 +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
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
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
Pavel Denisov
d6e4072e26 Remove Unidecode from postgres_search. Fix #5001 (#5514) 2019-08-20 16:12:35 +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
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
Jonny Scholes
c0af26b076 Move and refactor upgrade notification JS 2019-08-04 17:39:55 +10:00
Neal Todd
4a93424654 Prevent exception when attempting to delete a model with a protected 1-to-1 relation
Modeladmin handles notification to the user if a model instance has protected ForeignKey
relationships. However, if the protected relation is a OneToOneField it raises an exception:

  File ".../wagtail/wagtail/contrib/modeladmin/views.py", line 742, in post
    for obj in qs.all():
AttributeError: 'MyRelatedModel' object has no attribute 'all'

because qs in this case is the related instance rather than a queryset of related instances
(as is the case for a ForeignKey).

This commit handles the OneToOneField case as well.
2019-08-04 17:20:41 +10:00
Iman Syed
d3f720995a Make image fallback work for images with big/small aspect ratios. Fix #5472 (#5474) 2019-08-01 11:46:34 +01:00
Catherine Farman
f53dd95696 Change StreamField group labels color so labels are visible. Fix #5455 (#5462)
* use lighter grey for streamfield group label for accessible contrast
2019-07-26 16:39:11 -04:00
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
1468cab3a1 Release note for #5431 2019-07-25 10:46:41 +01:00
Daniele Procida
72db52371a Updated feature detection notes 2019-07-21 18:03:09 +10:00
Michael van Tellingen
9cd2fc2c82 Add a construct_page_listing_buttons hook
This hook mimics the functiolity provided by `construct_page_action_menu`
in that it constructs the final list of buttons to be shown in the wagtail
admin interface.  This means that within this function button's can be
removed, added or re-ordered.

See #4925
2019-07-21 17:40:26 +10:00
Matt Westcott
772b76ef00 Add 2.7 section to changelog and release notes 2019-07-09 16:51:48 +01:00