Matt Westcott
9886cb0476
add missing : to after_create_page example
2021-01-27 09:21:42 +00:00
Thibaud Colas
0dbd69f491
Configure Sphinx for Markdown support ( #6711 )
2021-01-26 22:09:52 +00:00
Matt Westcott
df125b1652
Release notes for #6718
2021-01-26 10:55:26 +00:00
Matt Westcott
49b13a3139
Fix indentation on MinMaxCountStreamModel / BlockCountsStreamModel
2021-01-26 10:55:25 +00:00
Matt Westcott
a8f41258b5
Move set_meta_options logic to the base Block class
2021-01-26 10:55:25 +00:00
Matt Westcott
d42b9b4a74
add backticks to streamfield option docs
2021-01-26 10:55:25 +00:00
Matt Westcott
d22fc9181e
Test all permutations of blank / non-blank StreamFields
...
Regardless of how the top-level StreamBlock is instantiated, or what its required Meta attribute says at that point, the StreamField's blank kwarg (defaulting to False) should be the sole indicator of whether the field is required or not.
2021-01-26 10:55:25 +00:00
Matt Westcott
8f2c7a0011
Documentation for new min_num, max_num, block_counts options
2021-01-26 10:55:24 +00:00
Haydn Greatnews
60263dfdad
Add testing for streamfield count restrictions passed to StreamField
2021-01-26 10:55:24 +00:00
Matt Westcott
643bbfc600
Allow StreamBlock to pick up blank, min_num, max_num and block_counts kwargs from StreamField
2021-01-26 10:55:24 +00:00
Helder Correia
f03c11f1d1
Fix typo
2021-01-25 10:53:19 +00:00
Matt Westcott
23096b9f73
Show required asterisks for required descendant blocks of required streamfields ( #6715 )
...
Fixes #5983 ; possibly also has a bearing on #4306 . A CSS rule dating from the original StreamField design was hiding the 'required' asterisk on fields within a required StreamField, presumably on the mistaken belief that they duplicate the information given by the top-level asterisk on the streamfield. (In #5983 this was reported as a regression in 2.7 when the react-streamfield CSS was introduced, so it's possible that the old design had something to mitigate this, e.g. an asterisk being inserted elsewhere.)
2021-01-21 14:36:57 +00:00
Matt Westcott
97bfaf15e9
fix version number
2021-01-21 11:14:50 +00:00
Matt Westcott
b5835dd862
Test against Django stable/3.2.x branch
2021-01-19 09:53:30 +00:00
Matt Westcott
14daf4be0a
Remove outdated versionadded/versionchanged notes in docs
2021-01-19 09:51:01 +00:00
Matt Westcott
ca908356bc
Rotate deprecation warnings
2021-01-19 09:49:12 +00:00
Matt Westcott
c3abf40ea5
Add release notes / changelog section for 2.13
2021-01-19 09:47:31 +00:00
Matt Westcott
7e2d1a22bf
Version bump to start work on 2.13
2021-01-19 09:44:43 +00:00
Matt Westcott
fe51d1c6ed
Changelog entry for #6409
2021-01-18 17:59:43 +00:00
Matt Westcott
47cec03f37
Update translator list
2021-01-18 17:37:11 +00:00
Matt Westcott
5e0a585f3c
Generate new strings for translation
2021-01-18 17:32:09 +00:00
Matt Westcott
f920e24ab1
Fetch new translations from Transifex
2021-01-18 17:27:59 +00:00
Michael Brown
cadb5456c0
Apply scss styling to collection_choice_field ( #6683 )
2021-01-18 17:06:29 +00:00
Karl Hobley
44f3731b1c
Use .specific_deferred when calling .get_admin_display_title()
2021-01-18 16:32:59 +00:00
Matt Westcott
c0c7f1bd5d
Release note for #6635
2021-01-18 15:11:46 +00:00
Matt Westcott
791fdcc130
Add \n delimiter between url and max_width
...
This prevents `get_embed_hash('https://example.com/embed ', 400)` and `get_embed_hash('https://example.com/embed400 ')` from returning the same result.
2021-01-18 15:11:46 +00:00
Coen van der Kamp
32ade8672f
Avoid combining schema changes and RunPython operations
2021-01-18 15:11:46 +00:00
Coen van der Kamp
834fd2fd54
Allow long embed urls, add unique hash
2021-01-18 15:11:45 +00:00
Allen, Timothy
3becf3cf81
Add blocks for adding extra fields to the move interface.
2021-01-18 13:28:37 +00:00
Andy Babic
f905e705da
Add Page.specific_deferred ( #6661 )
2021-01-18 13:25:55 +00:00
Will Giddens
2da410b2e0
Add combined index for Postgres search backend. ( #6548 )
...
Fixes #6546
2021-01-18 12:19:18 +00:00
David Beitey
3a5b7255ad
Change UniqueConstraint for wider database support ( #6607 )
...
This fixes #6393 by modifying the constraint to use an IN condition
which supports both Postgres and SQL Server. Previously, the `|` (OR)
condition was only supported by Postgres because SQL Server only
supports AND conditions.
The implementation follows suggestions from @gasman in
https://github.com/wagtail/wagtail/issues/6393#issuecomment-732161057 :
* Migration 0050 is modified to not break on SQL Server
* Added migration 0060 to add or replace the constraint
Additionally, this allows for and documents a `DATABASE_DRIVER` env
variable to be set for testing, to allow a different SQL Server driver
(e.g. FreeTDS on Mac/Linux); and adds the specific `host_is_server`
option for FreeTDS (won't affect SQL Server Native Client on CI).
2021-01-18 11:52:52 +00:00
Matt Westcott
9f4fe2104e
Upgrade circleci nightly build to use node 10
2021-01-18 00:21:05 +00:00
Joshua Marantz
8e79c61564
Implement CSS variables for admin color theming ( #6409 )
...
Co-authored-by: JNaftali <jmarantz@thelabnyc.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-01-17 02:17:41 +00:00
Vlad Herasymenko
454002fbd7
Include default emed finders in facebook embeds configuration example ( #6625 )
...
Facebook and Instagram embeds configuration section should include the default finders for all other providers. It's unclear for someone who just wants to fix his facebook embeds
2021-01-15 21:15:46 +00:00
Matthias Rohmer
9a1fc6d243
Add missing import to example code snippet ( #6638 )
...
Adding this makes the code snippet ready to use via copy and paste.
2021-01-15 21:10:55 +00:00
Matt Westcott
758fa2b863
Release note for #6654/#6658
2021-01-15 20:20:00 +00:00
Matt Westcott
133e2b7a37
Add a base DeleteUploadView class
2021-01-15 20:05:24 +00:00
Matt Westcott
4f4ce7232c
Add a base CreateFromUploadView class
2021-01-15 20:05:24 +00:00
Matt Westcott
d28295f1bf
parameterise CreateFromUploadedDocumentView
2021-01-15 20:05:23 +00:00
Matt Westcott
e8d7ff4a45
Add a base DeleteView class
2021-01-15 20:05:23 +00:00
Matt Westcott
13766b8c9d
Add a base EditView class
2021-01-15 20:05:22 +00:00
Matt Westcott
bdda8bf484
parameterise EditView
2021-01-15 20:05:22 +00:00
Matt Westcott
0fcaf297ee
combine identical edit_form.html templates
2021-01-15 20:05:22 +00:00
Matt Westcott
9f9c1ae399
move get-context methods into base class
2021-01-15 20:05:21 +00:00
Matt Westcott
293e29f97d
Create a shared base class for AddView
2021-01-15 20:05:21 +00:00
Matt Westcott
40093b6713
Split up wagtail.admin.views.generic module
2021-01-15 20:05:21 +00:00
Matt Westcott
e2adb8729c
Extract methods for constructing the form/json response context
2021-01-15 20:05:20 +00:00
Matt Westcott
80d142c1e4
make object / upload_object into instance attributes
2021-01-15 20:05:20 +00:00
Matt Westcott
3d0e3ccc99
Convert AddView to a TemplateView
2021-01-15 20:05:20 +00:00