0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

2687 Commits

Author SHA1 Message Date
Matt Westcott
3024e02481 Revert "Formalise Python 3.8 support"
This reverts commit ddbbaea288.
2019-10-16 14:27:59 +01:00
Karl Hobley
b4ecead6d9 [5225] Take number of frames into account when limiting image size 2019-10-16 11:36:07 +01:00
Andreas Bernacca
3fd3d97850 Add model to PersonAdmin in documentation 2019-10-16 10:54:05 +01:00
Matt Westcott
ddbbaea288 Formalise Python 3.8 support 2019-10-15 20:08:04 +01:00
Matt Westcott
34b3f0c0fc Recommend signals rather than hooks for model-level customisations
As per #5620 - signals are often overlooked as a way of customising model-level behaviour. We should recommend them over admin hooks where possible, as they aren't reliant on users taking one particular path through the admin - for example, an 'add document' signal will be triggered regardless of whether a document is created through the single uploader, multiple uploader, chooser model or a scripted task, whereas a hook would not catch all of these cases.
2019-10-15 13:52:32 +01:00
LB (Ben Johnston)
03cd4056df Docs - Add AbstractUser import to custom user model
- `from django.contrib.auth.models import AbstractUser`
- revise a previous changelog entry to clarify 'clean up' vs 'fix'
2019-10-12 09:57:47 +10:00
Matt Westcott
9d7d09bd75 Replace format() placeholders in translatable strings with % formatting
Fixes #5539. Transifex and Django's makemessages command have validation to catch invalid placeholder variables within translated strings - for example, where the translator has translated the variable name - but these only recognise old-style `%` formatting, not the `format` method, and so it's better for us to standardise on % formatting.

To reduce the burden on translators having to re-translate these strings, only the ones using named placeholders (`"Edited page {title}"`) rather than numeric ones (`"Edited page {0}"`) have been changed - hopefully the latter give less room for error.

Also fixed some incorrect use of plurals (verbose_name vs verbose_name_plural) in snippet confirmation messages.
2019-10-12 09:46:57 +10:00
David Thompson
6a6555eb19 Fix multiple minor documentation issues
- Typo in readme (verb did not agree with the subject)
- Grammatical error in topics/pages
- #5364 - Update URL config code block in getting-started/integrating-into-django
2019-10-12 09:42:02 +10:00
a-mere-peasant
1eae1e4614 Added 'image uploads in forms' to third party tutorials 2019-10-12 09:31:19 +10:00
Matt Westcott
a0035c33c0 Add example of template rendering to TableBlock docs
Addresses #5540
2019-10-12 09:29:10 +10:00
Matt Westcott
72ba719ac8 Remove mentions of Django 3.0 compatibility from release notes
Work on compatibility is ongoing while Django 3.0 is still in development; we don't want this to be misinterpreted as a statement of formal Django 3.0 support (which we can't promise until the final release)
2019-10-11 12:28:01 +01:00
Matt Westcott
7aacade7ec Add acknowledgement to The Motley Fool 2019-10-11 12:27:18 +01:00
Matt Westcott
ee68d2214a Release note for #5500 / #5612 2019-10-11 12:18:34 +01:00
Matt Westcott
3557c954c0 Clarify that menu item order attribute is ignored in construct_page_action_menu 2019-10-11 12:17:52 +01:00
Matt Westcott
671698a59f Add release note about template change for action menu items 2019-10-11 12:11:09 +01:00
Matt Westcott
6de06b6d04 Update construct_page_action_menu example
Now avoids redefining the whole list, and reflects the fact that the first (rather than last) item is picked as the default.
2019-10-11 12:11:09 +01:00
Rahmi Pruitt
fe2f8644fa Allow default item in action menu to be overridden with construct_page_action_menu hook
Fixes #5438
2019-10-11 12:11:08 +01:00
Karl Hobley
0507ec5377 Release notes for #5611 2019-10-10 11:03:39 +01:00
pySilver
0149eff66a Implements ES7 support (#5611)
* Implements ES7 support

* Linter fix

* Adds docs

* isort fix

* Fixes typo
2019-10-10 11:00:14 +01:00
Matt Westcott
e1d3390a1f Release note for #5527 2019-10-09 12:53:58 +01:00
Matt Westcott
0569960acc Added upgrade note about disabling version strings 2019-10-09 12:16:59 +01:00
Matt Westcott
8711050e49 Add cache-busting parameter to admin static files
Fixes #5493
2019-10-09 12:16:56 +01:00
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