Wykres commitów

10572 Commity (27432e6c3ffc18c0243d1a6bb1fa83c71dd7cb6f)

Autor SHA1 Wiadomość Data
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
Sævar Öfjörð Magnússon 9d10e28214
Update wagtail app list to match installed apps in documentation 2020-10-06 15:03:39 +01:00
samgans bff6766360
(FIX): Page Copy does not trigger page_published signal (#6434) 2020-10-06 15:02:26 +01:00
Sævar Öfjörð Magnússon bcf1fab77f
Add a check for a string value in Elasticsearch 'URLS' setting 2020-10-06 15:01:58 +01:00
Karl Hobley f2dfff8061 Flake8 all other Python files 2020-10-05 14:27:50 +01:00
Matt Westcott dd42d91663 Release note / additional fix for #6339 2020-10-05 14:25:33 +01:00
Frantisek Holop 07a4b41444 deprecated 2020-10-05 14:23:50 +01:00
Frantisek Holop 1e22702bd6 django 3.1 deprecates django-admin.py 2020-10-05 14:23:50 +01:00
Matt Westcott dd442a3990 remove trailing whitespace to placate doc8 2020-10-05 12:44:57 +01:00
jacobtoppm c5a7584553 Add changelog and contributor for #6423 2020-10-05 12:36:54 +01:00
Sævar Öfjörð Magnússon 610cf07a85 Remove reference to photographer credit in documentation, add reference to title 2020-10-05 12:34:26 +01:00
Sævar Öfjörð Magnússon cbe5c109dc Fix incorrect reference to edit fields in image documentation 2020-10-05 12:34:26 +01:00
meghanabhange f1fbbcbc24
Add validation for file extension in AbstractDocument using WAGTAIL_DOCS_EXTENSIONS setting (#6423) 2020-10-05 12:26:00 +01:00
Karl Hobley aafb5fb1eb Change docs code block style to 'default' 2020-10-05 11:21:07 +01:00
Karl Hobley cf38b2457d Put quotes around some inline code 2020-10-03 14:43:03 +01:00
Karl Hobley 181b523faf Add more names and jargon to spelling wordlist 2020-10-03 14:43:03 +01:00
Karl Hobley 72ef7a73e8 ElasticSearch => Elasticsearch 2020-10-03 14:43:03 +01:00
Karl Hobley 39d931d77d Javascript => JavaScript 2020-10-03 14:43:03 +01:00