Wykres commitów

3793 Commity (92cc026694460e61a24ccf3f557718ba72fedd52)

Autor SHA1 Wiadomość Data
Matt Westcott 92cc026694 Rename docs page to 'Using forms in admin views' 2022-03-02 15:55:25 +00:00
Matt Westcott f619316003 Add upgrade consideration note for third-party packages implementing their own panels 2022-03-02 15:55:25 +00:00
Matt Westcott 31139e8b24 Remove references to StreamFieldPanel and ChooserPanels from docs 2022-03-02 15:55:25 +00:00
Matt Westcott 786a4a3384 Provide a documented register_form_field_override method for apps to register their own form fields with WagtailAdminModelForm 2022-03-02 15:55:25 +00:00
Matt Westcott d6358836f2 Remove redundant render_as_field override from BaseChooserPanel
All built-in choosers use the standard field_panel_field.html template - it's probably been this way since Wagtail 1.0, when choosers got their own Widget classes rather than just being HTML decoration around a HiddenInput. As a result, the additional template context they pass (e.g. self.object_type_name) is redundant. If any third-party chooser panels exist that do need them (which is unlikely, if they just copy the existing ones), they should override render_as_field themselves to pass whatever context they need.
2022-03-02 15:55:25 +00:00
Matt Westcott c6f3b9982c Fix / remove broken documentation links 2022-03-02 11:48:06 +00:00
Matt Westcott d4899f5a51 Fix heading level 2022-03-02 11:38:46 +00:00
LB Johnston aaddf81b36 update release notes with Hallo removal
- resolves #6228
2022-03-02 20:15:33 +10:00
LB Johnston 6ecdc16bd4 remove Hallo references in the documentation 2022-03-02 20:15:33 +10:00
Sage Abdullah bf8d5b3f94 Replace `data_json` `TextField` with `data` `JSONField` in `BaseLogEntry` 2022-02-28 10:27:07 +00:00
Steve Stein 3bf9b65c06
Tailwind package setup (#8003)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-02-27 16:08:38 +00:00
Matt Westcott e59c8bc644 Fix heading levels 2022-02-25 13:06:40 +00:00
Sage Abdullah 05812ce624 Remove `replace_text` management command 2022-02-25 11:39:47 +00:00
Sage Abdullah bae76a2af0 Replace `content_json` `TextField` with `content` `JSONField` in `PageRevision` 2022-02-25 11:39:47 +00:00
LB (Ben Johnston) 861a509b32
add `make format` to cover most auto-fixable formatting (#8022) 2022-02-24 17:20:35 +00:00
Thibaud Colas d149a27392 Upgrade Storybook setup, with latest release, less boilerplate 2022-02-24 21:22:45 +10:00
John-Scott Atlakson 4a7fb00d35 Always set the filename in Content-Disposition
Relates to original fix for #1158
2022-02-23 06:50:21 +10:00
Gianluca De Cola aaee9b8c81 Remove IE11 warning message and related files
- resolves #7993
2022-02-22 17:22:39 +10:00
Joshua Munn b8405e9ca8 Add unsaved fields to FormBuilder.formfields with clean name as key
fixes #6555,
Only the final unsaved FormField appears in the preview of a FormPage. As
FormBuilder adds fields to its formfields attribute using their
clean_name as the key, and FormField.clean_name isn't populated until
FormField.save is called, all unsaved fields are added to the
FormBuilder.formfields dict with the empty string as key. This solves
this by calling get_field_clean_name on the field before insertion
into formfields if clean_name hasn't been set yet.
2022-02-22 17:09:37 +10:00
LB Johnston 927358bf3c add release note #7941 2022-02-22 16:35:42 +10:00
LB Johnston e0f9e802de add release notes #7977 2022-02-22 16:32:02 +10:00
LB Johnston d2a11bc7bd add release notes #7965 2022-02-22 16:30:25 +10:00
Andy Babic 963c739f03 Remove a reference to the recipe from redirects.rst 2022-02-22 16:18:46 +10:00
Andy Babic 2c33c98eb4 Remove redirect auto-creation recipe from docs, as wagtail has this covered. 2022-02-22 16:18:46 +10:00
John-Scott Atlakson d8d01f5ed2
Fixed typo in StreamBlock example (#8020) 2022-02-21 17:37:42 +00:00
sag᠎e d191504e15
Update development instructions to use Node.js 16 (#8019) 2022-02-21 11:53:08 +00:00
Thibaud Colas 0b37f6d024
Remove all style customisations for documentation, except banner. Fix #7987 (#7990)
All of those customisations predate #7956, which fixed the loading of the CSS, so they were likely only intended for our previous Sphinx theme.
2022-02-18 13:41:18 +00:00
Matt Westcott 51e760810c Release note for #7985 in 2.16.2 2022-02-18 10:58:57 +00:00
Serafeim Papastefanos 25ed1ba38e Update django-treebeard dependency to 4.5.1 or above (#7985)
The django-treebeard 4.3.x is not compatible with Django 4.x because of the dreaded ugettext alias removal problem. This makes sure that a proper django-treebeard version will be installed.

*IMPORTANT*: Please notice that django treebeard *does not* officially support django 4.x. However from my tests I have concludeded that it works fine after you install the version 4.5.x.
2022-02-18 10:53:27 +00:00
Thibaud Colas 52048ba0e8 Release notes for #7916 2022-02-15 16:31:57 +00:00
Thibaud Colas c5d2f98205 Remove redundant noopener from noreferrer rel attributes 2022-02-15 16:31:57 +00:00
Thibaud Colas ae14fa6e76 Remove JS compatibility code for IE11 2022-02-15 16:31:57 +00:00
Thibaud Colas 9ecc105178 Remove legacy browser styles 2022-02-15 16:31:57 +00:00
Dan Braghis 716bf92c2d Add changelog for #7967 2022-02-15 13:09:39 +00:00
Dan Braghis d10f15e558 Reformat with black 2022-02-15 13:06:17 +00:00
Dan Braghis 6dae6e5d07 Add and configure black
This:
- updates the pre-commit configuration and setup.py testing dependencies
- updates isort/flake8 configuration for black
- adds black linting to Makefile and CircleCI configuration
- updates editorconfig with the new line length (88) for py files
- updates python guidelines in docs
2022-02-15 13:06:17 +00:00
Steve Stein f968aac038
Update system font stack value for compatibility. Fix #7724 (#7972)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

- `-apple-system, BlinkMacSystemFont` - These are used to target modern iOS Safari, macOS Safari, macOS Firefox and macOS Chrome's system fonts. 
- ` 'Segoe UI',  system-ui,` - These fonts target windows machines on Windows 7+ [reference](https://markdotto.com/2018/02/07/github-system-fonts/#the-stack). Having system-ui placed after Segoe UI allowed Segoe UI to take precedence when used on Windows machines set to Chinese ( Simplified ) language. There are some known language issues around `system-ui` being used: [This github article](https://infinnie.github.io/blog/2017/systemui.html). However, the purpose of `system-ui` [(reference here)](https://drafts.csswg.org/css-fonts-4/#valdef-font-family-system-ui) is to allow web content to integrate with the look and feel of the native OS. Which makes this font-family a good choice for other devices _if_ the problem is solved by putting Segoe UI first. 
- `Roboto,` - This is our fallback font for androids devices. Having Segoe set before this allows windows to use its system default font even if you have installed Roboto for development reasons. 
- `Helvetica Neue,` - This is a fallback for older macOS
- `Arial` - Using this to catch any of the very old Windows versions (shoutout windows 95)
- `sans-serif` - Our last resort to get a font without serifs
- `  'Apple Color Emoji',  'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';` - All the emoji's for the OS's mentioned above. 😁
2022-02-14 15:17:02 +00:00
Jannis Vajen 7e6755ec62 Add missing import statement in code example 2022-02-13 16:33:46 +00:00
Steve 01986cfa17 Indent templates with djhtml 2022-02-12 01:15:51 +00:00
Steve Stein 72886c0a62
Djhtml install and configure with pre-commit (#7940) 2022-02-12 01:04:21 +00:00
Dan Braghis 03c2f2a4cb Add changelog for #7946, #7947, #7951 2022-02-11 14:41:56 +00:00
Mads Jensen de3fcba9e9 Fix warnings from flake8-comprehensions. 2022-02-11 14:34:00 +00:00
Matt Westcott 10df5c2c0d Fill in release date for 2.16.1 2022-02-11 13:31:27 +00:00
Matt Westcott a7cafc3181 Fill in release date for 2.15.4 2022-02-11 13:30:58 +00:00
Thibaud Colas 046685149a
Add new version fo Wagtail Space docs banner. Fix #6089 (#7956)
* Add new version fo Wagtail Space docs banner. Fix #6089

* Fix closing date

Co-authored-by: Matt Westcott <matthew@torchbox.com>
2022-02-11 12:38:22 +00:00
LB Johnston f7836c2014 reorder nav (sidebar) imports so that hooks can still override them (#7954)
- main_nav_css & main_nav_js were added when the new slim sidebar was being built
- with the legacy styles/js - there was little risk of there being conflicts
- with the new sidebar CSS, this sidebar bundle comes with a large duplicate of what is in core.css so we should add it before the hooks run so that hook scan override if needed as per our documentation
- this is a temporary fix for #7943 - ideally we should avoid sidebar.scss bundle duplicating so much of the core css
- note: JS is lower risk but should follow the same convention
2022-02-11 11:01:52 +00:00
Matt Westcott adeabd9633 Prevent error on creating automatic redirects for sites with non-standard ports
Fixes #7942 - get_dummy_request should not include the port number in SERVER_NAME.
2022-02-11 10:40:50 +00:00
Steve Stein 6382945a7b
Add ESlint & Stylelint to pre-commit hooks (#7931). Fix #7909
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-02-10 16:01:32 +00:00
Matt Westcott 01fd201c36 Release note for #7944 in 2.16.1 2022-02-10 15:43:44 +00:00
Matt Westcott c81743c17b Add 2.16.1 release notes
These don't need to go in the 2.17 notes, since 2.16.1 will be released first and it's implied that everything in it will be in 2.17.
2022-02-10 13:49:35 +00:00