Wykres commitów

15 Commity (de005bc36a766f7fc66c253ec7b2d1c84f94ea0d)

Autor SHA1 Wiadomość Data
Matt Westcott 97e781e31c Renumber Wagtail 2.17 to 3.0
As per discussion on https://github.com/wagtail/wagtail/discussions/7732, the changes in the upcoming release (sidebar redesign, removal of hallo.js, module reorganisation) warrant a version bump to 3.0 if we're following semantic versioning.
2022-03-31 06:38:27 +10:00
Sage Abdullah dcae64c255 Allow `StreamField` to use `JSONField` internal type via `use_json_field` kwarg
Add system check for use_json_field in StreamField

Change system check level to Warning

Add use_json_field argument to StreamField in test models

Use RemovedInWagtail219Warning instead of a system check

Handle unpacked values in to_python when use_json_field is True

Duplicate models and tests for JSONField-based StreamField

Add basic tests for JSONField-based StreamField

Add json_field property in StreamField to unify JSONField usage

Add docs

Don't use destructuring for kwargs in deconstruct

Add versionchanged note to StreamField reference
2022-03-29 18:18:08 +01:00
Karl Hobley 75cc7da38a Move wagtail.core to wagtail 2022-03-17 17:19:59 +00:00
Matt Westcott 8d40a978ef Remove old versionadded / versionchanged notes 2022-02-08 19:00:47 +00:00
LB (Ben Johnston) 707ea54f4f Update blocks.rst
Docs does not currently include the `rows` kwarg that is available on `TextBlock`.

See Question on slack https://wagtailcms.slack.com/archives/C81FGJR2S/p1635825388225100
2022-01-08 20:54:20 +10:00
Matt Westcott 980d2c435e collapse option on StreamField, StreamBlock, ListBlock
Fixes #7705
2021-12-01 07:36:54 +10:00
Matt Westcott 0380f01b24 Allow specifying a format for the label of a collapsed StructBlock
Currently, the label shown for a StructBlock's collapsed representation takes its content from the first sub-block of the StructBlock, which isn't always what you want. Add a new `label_format` meta option to StructBlock to allow customising this - e.g. `label_format = "Profile for {first_name} {surname}"`
2021-09-27 19:07:14 +01:00
Matt Westcott 8c97c254a7 Add server-side min_num and max_num validation for ListBlock
Fixes #5300
2021-07-14 13:14:15 +01:00
Matt Westcott bdfa3811d1 Remove outdated versionadded/versionchanged annotations 2021-07-13 17:10:56 +01:00
Petr Dlouhý 50e4f5151d fix small youtube embed - allow to override max_width/max_height in EmbedBlock 2021-06-25 16:15:09 +01:00
Matt Westcott 9d29ba862c Document idForLabel on the telepath widget API
Fixes #7145
2021-05-04 16:01:01 +01:00
Matt Westcott 571b9e1918 Add example of a widget adapter class 2021-03-23 18:57:53 +00:00
Matt Westcott 3e2c928e2f Add StreamField context to block examples 2021-03-23 18:57:53 +00:00
Matt Westcott 0f75fb14f1 Add reference page for the client-side widget API 2021-03-23 18:57:53 +00:00
Matt Westcott b3c39216f2 Create a 'streamfield' subsection within the reference docs 2021-03-23 18:57:53 +00:00