0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

12637 Commits

Author SHA1 Message Date
Karl Hobley
6e177164d5 Merge sites utilities into sites models 2022-03-17 17:19:59 +00:00
Karl Hobley
da04f1e50b Move core.utils to core.coreutils 2022-03-17 17:19:59 +00:00
PaarthAgarwal
d38c664c1f README.md - add darkmode and lightmode setting for logo
- Added wagtail-inverse.svg
2022-03-17 08:21:57 +10:00
Matt Westcott
5ffb78e3c2 Release note for #8060 2022-03-16 12:37:26 +00:00
Matt Westcott
b1f311f7bc make FieldPanel.is_shown work without a request object
The create_log_entries_from_revisions management command fetches a comparison object from the edit handler class without binding to a request, and is_shown is called in that process.
2022-03-16 11:47:51 +00:00
Matt Westcott
dd37901428 Add documentation for the permission kwarg on FieldPanel 2022-03-16 11:47:51 +00:00
Matt Westcott
1aeb633f9b Implement permission argument on FieldPanel 2022-03-16 11:47:51 +00:00
Matt Westcott
b37b1b8504 Pass the for_user argument to EditHandler-derived forms
This covers pages, snippets, ModelAdmin and settings. This assumes that the form is a subclass of PermissionedForm such as WagtailAdminModelForm - for pages and snippets this is documented as a requirement (https://docs.wagtail.org/en/stable/advanced_topics/customisation/page_editing_interface.html#customising-generated-forms); for settings it's undocumented (but would entail setting `base_form_class`, and from there it's implicit that the same rules as snippets apply).

For ModelAdmin, it's possible to set a custom form by overriding get_form_class. This isn't documented, but the tests from #2752 make use of this - so in case similar code exists in the wild, I've added an upgrade note.
2022-03-16 11:47:51 +00:00
Matt Westcott
cb52b95e76 Incorporate PermissionedForm into WagtailAdminModelForm 2022-03-16 11:47:49 +00:00
Matt Westcott
bbd3c22f30 Update InlinePanel for change in ClusterForm formsets/exclude_formsets semantics
django-modelcluster 6.0 includes https://github.com/wagtail/django-modelcluster/pull/158, which changes the semantics of formsets/exclude_formsets so that a ClusterForm that specifies neither of them will have no formsets defined, rather than formsets for all child relations. (This corrects an implementation wart in the upcoming EditHandler refactor.) This doesn't affect Wagtail for the most part, because EditHandler passes an explicit formsets option - but nested InlinePanels currently rely on the old behaviour, because modelcluster <=5 provides no way to pass the inner panel's formset definition inside the outer one. We fix this by adding the necessary 'formsets' key introduced in https://github.com/wagtail/django-modelcluster/pull/158.
2022-03-16 11:46:30 +00:00
Serafeim Papastefanos
93da5bc793 Documentation - modelAdmin - add form clean example 2022-03-16 21:16:28 +10:00
nmorduch
e748b1f51a Update core team & alumni list
- Add Tim Allen and Vince Salvino to the core team list
- Update Dawn's affiliation to Wharton
- Move Andy Babic and Bertrand Bordage to alumni list
- Add Michael van Tellingen to the alumni list
2022-03-16 21:13:48 +10:00
LB Johnston
6439b1e8a5 refine documentation guidelines for links
- add clarity that page links can also get auto-generated labels
- add example of a reference link using a custom label
- format with prettier
2022-03-16 20:51:58 +10:00
LB Johnston
7c3ddb3bfc documentation - adopt MyST syntax for form builder section
- the original conversion to markdown happened around the same time as the MyST conversion
- this meant that the syntax was not in sync
- also run prettier over markdown for consistent formatting & whitespace
- see #8007
2022-03-16 20:51:43 +10:00
p0lygun
fda36c7343 Documentation - convert advanced topics docs to markdown 2022-03-16 20:48:03 +10:00
Thibaud Colas
a50ebe9f83
Tailwind setup follow-up: RTL support and Windows High Contrast mode (#8117)
Co-authored-by: LB (Ben Johnston) <mail@lb.ee>
2022-03-15 15:05:18 +00:00
LB (Ben Johnston)
042d077fc1
Minor accessibility fixes to new slim sidebar menu items (#8015)
* Consistently set `aria-haspopup="menu"` for all sidebar menu items that have sub-menus (LB (Ben Johnston))
 * Make sure `aria-expanded` is always explicitly set as a string in sidebar (LB (Ben Johnston))
 * Use a button element instead of a link for page explorer menu item, for the correct semantics and behavior (LB (Ben Johnston))
2022-03-15 14:53:40 +00:00
Thibaud Colas
14280ad7ea
Convert all UI code to CSS logical properties (#8051)
- Rewrite all styles to use logical properties
- Update Stylelint configuration to include logical properties checks
2022-03-15 13:21:06 +00:00
Nicolas Ferrari
11e7936562
Add alwaysdata among Cloud providers in documentation (#8070)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 12:29:59 +00:00
PaarthAgarwal
4b07e4214a
Remove most uppercased text styles from admin UI. Fix #7624 (#8111)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 12:07:07 +00:00
PaarthAgarwal
6a84cf4583
Switch focus outlines implementation to :focus-visible for cross-browser consistency. Fix #7994 (#8113)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-15 11:33:12 +00:00
LB Johnston
7067c81604 update release notes for #8101
- As this is only a dev/testing dependency, and declaring the dependencies that you use directly is likely standard knowledge
- if anyone does overlook it, it'll presumably fail in an obvious and easily fixed way
- see 8ac683ef5c (r68486362)
2022-03-15 08:12:17 +10:00
LB Johnston
8ac683ef5c add changelog entry for #8101 2022-03-11 15:21:47 +00:00
Thibaud Colas
fc0f76ea9d Switch from jinjalint to curlylint 2022-03-11 15:21:47 +00:00
Thibaud Colas
855486157b Make sure CircleCI build installs all dependencies 2022-03-11 15:21:47 +00:00
Thibaud Colas
4c2f160736 Remove docutils pin 2022-03-11 15:21:47 +00:00
Thibaud Colas
c5aa326565 Switch to Markdown tables for documentation 2022-03-11 15:21:47 +00:00
Thibaud Colas
a21490bb37 Improve spacing in new Sphinx output 2022-03-11 15:21:47 +00:00
Matt Westcott
06eb4c2afd Use released django-modelcluster when testing against Django main
django-modelcluster 5.3 now ships with the provisional Django 4.1 compatibility fix.
2022-03-11 14:30:29 +00:00
LB Johnston
4db71de5a2 add release notes for #8084 2022-03-10 19:21:34 +10:00
LB (Ben Johnston)
e3b6e79a8e
Documentation - migrate form builder docs to markdown (#8007)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-10 08:43:49 +00:00
LB (Ben Johnston)
6ed65f14c6
Move Markdown docs to MyST parser. Fix #8074 (#8084) 2022-03-09 11:48:19 +00:00
LB (Ben Johnston)
58a8a31dd6
docs - add third party tutorials Jan/Feb 2022 (#8067) 2022-03-09 09:19:43 +00:00
LB (Ben Johnston)
f342e073ce Revert "Readme - add badges"
This reverts commit 3d15d2db05.
2022-03-09 06:50:16 +10:00
Steve Stein
5996c5dd29
Switch icons implementation to SVG, with checkbox improvements (#8054) 2022-03-07 17:06:19 +00:00
LB (Ben Johnston)
3d15d2db05 Readme - add badges
Add badges to the readme for Python package info, licence and code tests passing.
2022-03-06 13:10:56 +10:00
Steve Stein
07ee733bbe
Page Editor Improvements: TypeScale configuration (#8064). Fix #7982
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-03-04 22:55:24 +00:00
Andrii Oriekhov
56a79091b3
Add GitHub URLs for PyPI (#8071) 2022-03-04 16:12:54 +00:00
Matt Westcott
177bc53aa0 test Django main against django-modelcluster and django-taggit main branches, now that fixes have been merged 2022-03-04 16:07:22 +00:00
LB (Ben Johnston)
70aabb5d34
Refine documentation for show_in_menus (#8072)
- this appears to be a point of confusion, where developers are unsure what this field does
- this update makes it more explicit that this field does not do anything, except the queryset usage, by default
2022-03-04 14:34:21 +00:00
Matt Westcott
ef2fa2e394 Release note for #7684 2022-03-02 15:56:06 +00:00
Matt Westcott
92cc026694 Rename docs page to 'Using forms in admin views' 2022-03-02 15:55:25 +00:00
Matt Westcott
bd8d48be96 Use ObjectTypeRegistry for log entry model registry 2022-03-02 15:55:25 +00:00
Matt Westcott
37fe7ae035 Use ObjectTypeRegistry for AdminURLFinder 2022-03-02 15:55:25 +00:00
Matt Westcott
983402d1ad Extract a get_by_type method 2022-03-02 15:55:25 +00:00
Matt Westcott
79a5072a02 Refactor out a general ObjectTypeRegistry from ModelFieldRegistry 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
b8fd95ee86 Remove uses of StreamFieldPanel, including the check that you're using it 2022-03-02 15:55:25 +00:00
Matt Westcott
5fe7aef030 Move special case for StreamField not having a comments button from StreamFieldPanel to FieldPanel 2022-03-02 15:55:25 +00:00