0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 08:48:04 +01:00
Commit Graph

9383 Commits

Author SHA1 Message Date
Andreas Bernacca
3fd3d97850 Add model to PersonAdmin in documentation 2019-10-16 10:54:05 +01:00
Thijs Baaijen
fe1434e8d2 Change string based reference to class based 2019-10-16 10:51:54 +01:00
Matt Westcott
fe9fcd5128 Make copy of ES6 settings before setting max_ngram_diff (#5625) 2019-10-16 09:22:43 +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
Matt Westcott
cbbddb5572 Revise action menu ordering so that the first (not last) item is picked as the default
Addresses backwards compatibility of existing action menu hooks, as per https://github.com/wagtail/wagtail/pull/5500#pullrequestreview-286868977
2019-10-11 12:11:09 +01:00
Matt Westcott
0bd6266736 Add 'Page locked' as a distinct menu item 2019-10-11 12:11:08 +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
779620e53b Disable querystrings if a storage backend with hashed filenames is active 2019-10-09 12:16:58 +01:00
Matt Westcott
8711050e49 Add cache-busting parameter to admin static files
Fixes #5493
2019-10-09 12:16:56 +01:00
Prithvi MK
f4cc454e13 Add separate GitHub issue templates for feature requests and bugs. Fix #5560 (#5594) 2019-10-02 16:27:31 +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
Sergey Fedoseev
4d2956f7e7 Deduplicate creation of fake file in document tests 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
Andy Babic
e2607f917c Make it possible to override the url used by Page._get_dummy_headers() 2019-10-01 17:38:05 +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
43cce16b18 Update more FieldDoesNotExist imports as per #5581 2019-09-29 16:24:45 +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
Matt Westcott
000c4990b4 Test Django master against django-modelcluster master 2019-09-25 20:35:03 +01:00
Tim White
f44d27642b Updating FieldDoesNotExist imports to all be django.core.exceptions. (#5581) 2019-09-25 19:04:26 +01: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
cf8ca04cb4 Additional tests for document.url and serve view behaviour 2019-09-21 18:53:48 +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
Saptak S
c9b93c04fb Marks preview models for translation 2019-09-20 10:16:14 +01:00
Matt Westcott
10c2ee9dbc Add core team alumni section to contributors 2019-09-19 17:08:46 +01:00
Matt Westcott
c7bed060db Add translator credits 2019-09-19 15:33:39 +01:00
Matt Westcott
3668df7f5b Fetch new translations from Transifex 2019-09-19 15:05:36 +01:00