Karl Hobley
3e158ca2aa
Enable TypeScript ( #6472 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-21 00:51:09 +01:00
meghanabhange
3a2f2a6ea3
form_classname meta in FieldBlock ( #6470 )
2020-10-20 19:17:54 +01:00
Karl Hobley
0c2bae7941
Update to Babel 7 ( #6471 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-20 17:06:52 +01:00
Sævar Öfjörð Magnússon
b7643f869d
Fix spacing around the privacy indicator panel. ( #6454 )
2020-10-20 13:07:03 +01:00
Andy Babic
cbf65ba645
Release notes for #6386
2020-10-19 21:37:28 +01:00
David Bramwell
e28aa6b194
Document ModlelAdmin.prepopulated_fields
2020-10-19 21:36:05 +01:00
Antoni Martyniuk
9c56dfc5d0
Adds `ModelAdmin.prepopulated_fields` feature from django.admin
2020-10-19 21:36:05 +01:00
Matt Westcott
9947b955da
Lint config fixes ( #6473 )
...
Ref #6463 , #6428
* pin isort to 5.6.4
* update isort version mentioned in python_guidelines.rst
* make lint commands consistent between make lint and circleci
* fix isort errors on files outside of /wagtail
* speed up isort by ignoring additional directories and filetypes
2020-10-19 21:33:10 +01:00
Matt Westcott
8e47b27ffc
Fixed -> Fix
2020-10-19 21:31:32 +01:00
Jim Jazwiecki
024717fe0f
add support for natural keys to group collection permissions for use in fixtures ( #6211 )
2020-10-19 21:31:10 +01:00
Karl Hobley
05223db8c3
Add locale selector to page explorer
2020-10-19 20:15:34 +01:00
Karl Hobley
131f6870d5
Allow pages to be created in any locale at the root level
2020-10-19 20:15:34 +01:00
Karl Hobley
33c34c1230
Add locale selector to add subpage view
2020-10-19 20:15:34 +01:00
Karl Hobley
9e9e753f58
Add locale selector to page edit view
2020-10-19 20:15:34 +01:00
Karl Hobley
0efe4a75a5
[RFC 54] Internationalisation reference docs ( #6377 )
...
* Reference docs for internationalisation
* Update docs/reference/pages/model_reference.rst
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Update docs/reference/pages/model_reference.rst
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Update docs/reference/pages/model_reference.rst
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Apply suggestions from code review
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Add missing comma
* Apply suggestions from code review
Co-authored-by: Matt Westcott <matthew@torchbox.com>
Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-19 18:40:58 +01:00
Matt Westcott
9fab50e87a
remove trailing whitespace
2020-10-19 18:11:12 +01:00
Jean Zombie
b5cfca31eb
Add example of updating a page within after_create_page ( #6373 )
...
This update intends to add the answer I got on my slack support request (https://wagtailcms.slack.com/archives/C81FGJR2S/p1599209092087000 ).
2020-10-19 18:01:49 +01:00
Matt Westcott
27432e6c3f
Release note for #5976
2020-10-18 15:31:56 +01:00
Matt Westcott
5e37414de4
Ensure that default values on StreamField blocks always use a distinct instance
2020-10-18 15:28:57 +01:00
Matt Westcott
ed4d3430c9
Update comment on stream_data
2020-10-18 15:28:57 +01:00
Matt Westcott
56b2d86e9a
Implement bulk_to_python on StreamBlock
2020-10-18 15:28:57 +01:00
Matt Westcott
47faf79308
Implement bulk_to_python on ListBlock
2020-10-18 15:28:57 +01:00
Matt Westcott
bd8418d009
Implement bulk_to_python on StructBlock
2020-10-18 15:28:56 +01:00
Matt Westcott
0384cc3aff
Add bulk_to_python method to the base Block class
2020-10-18 15:28:56 +01:00
Dan Braghis
ba6f94def1
isort
2020-10-16 18:56:39 +01:00
Dan Braghis
5c05fc7d8e
Bump isort requirement for testing and update configuration
2020-10-16 18:56:39 +01:00
Dan Braghis
f478cd54d7
Add pre-commit support
2020-10-16 18:56:39 +01:00
Karl Hobley
4134eb1a36
Fix bug with page URL always going to default region ( #6426 )
...
On sites where multiple regions have the same content, Wagtail currently
always generates URLs for the default region, even if a perfectly valid
region is active.
For example, say we have the following languages configuration:
```python
LANGUAGES = [
('en-gb', "English (United Kingdom)"),
('en-us', "English (United States)")
('fr-fr', "French (France)"),
('fr-ca', "French (Canada)"),
]
WAGTAIL_CONTENT_LANGUAGES = [
('en-gb', "English"),
('fr-fr', "French"),
]
```
This configuration would let me author content in English or French.
The English content would be served under `/en-gb/` and `/en-us/`.
The French content would be served under `/fr-fr/` and `/fr-ca/`.
The problem is, if a user visited either `/en-us/` or `/fr-ca/` the URLs
for all the internal links would point at `/en-gb/` and `/fr-fr/`
respectively, as those are the language codes the pages were authored
in.
This adds a check to see if the current active language is a variant of
the linked page's language. If so, it doesn't override the language.
2020-10-16 15:42:03 +01:00
Matt Westcott
5f712b803a
fix duplicate target name enabling_internationalisation
2020-10-16 14:15:33 +01:00
Karl Hobley
82dafc7ef8
Add docs for new i18n API filters ( #6452 )
2020-10-16 13:57:37 +01:00
Karl Hobley
bdfee22e8b
New topic docs for internationalisation ( #6436 )
...
* New topic docs for internationalisation
* Spelling + Grammar fixes
* Clarity fixes
* Fix formatting issues
2020-10-16 13:36:19 +01:00
Karl Hobley
44d40292e8
Add release note for page aliases ( #6468 )
2020-10-16 11:01:10 +01:00
Karl Hobley
10137b0162
Changelog / release notes for #6440 and #6441 + some spelling fixes
2020-10-16 10:45:29 +01:00
Frantisek Holop
c8eb58ddac
Fix versionadded directive
2020-10-15 16:31:35 +01:00
Karl Hobley
7f7f9b4de1
Make snippets action menu hookable
2020-10-14 14:41:22 +01:00
Scott Cranfill
646763ba48
Update help text to use SVG icons ( #6457 )
...
* Update help text to use SVG icons
* Remove Sass for .object-help .icon-help-inverse
This styling is no longer needed.
I have left the general `icon-help-inverse` stuff in place, so as not to
break that at this time.
2020-10-13 18:10:02 -04:00
Glenn Paquette
423aefc72c
Issue #6064 --> added the code to documents view (edited multiple/add.html and add-multiple.js) to create success message ( #6427 )
2020-10-13 18:24:01 +01:00
Matt Westcott
7e74b2b5d9
Add migration to apply alphabetical collection ordering
2020-10-13 17:54:35 +01:00
Matt Westcott
906380486d
isort new files added in #6428
2020-10-13 14:19:07 +01:00
Cole Maclean
80c65390a4
Reset padding for checkbox & radio inputs
...
Previously, the normalize stylesheet covered this, however that's
no longer applicable due to selector specificity.
2020-10-10 14:57:14 +01:00
Noah Hall
37245d8546
move generate_signature and verify_signature from images/views/serve to images/utils
2020-10-10 14:56:36 +01:00
Matt Westcott
7be5363dac
Avoid retranslating month / weekday names that Django already provides ( #6301 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-10-09 14:16:40 +01:00
Karl Hobley
c170c50c78
Add view for converting aliases into regular pages
2020-10-08 10:24:58 +01:00
Karl Hobley
47b681ca27
Prevent editing alias pages
2020-10-08 10:24:58 +01:00
Karl Hobley
1ae437231c
Add "Alias" boolean field to page copy to allow creation of alias pages
2020-10-08 10:24:58 +01:00
Karl Hobley
b5eddca28b
Synchronise alias page content when the source is updated
2020-10-08 10:24:58 +01:00
Karl Hobley
7af655d0d1
Update Page.copy_for_translation to create parents as aliases
2020-10-08 10:24:58 +01:00
Karl Hobley
674fa8e27a
Add Page.create_alias method
2020-10-08 10:24:58 +01:00
Karl Hobley
17f63f0efc
Add alias_of field to Page
2020-10-08 10:24:58 +01:00
Karl Hobley
77610d1e64
Changelog / Release notes for #6434 and #6442
2020-10-06 16:02:48 +01:00