Chris Adams
768cb2a32f
Add more readable focus state for buttons
2019-03-19 17:36:05 +10:00
Matt Westcott
c9ea6d8dce
Remove imports of django.utils.six ( #5153 )
...
* Remove django.utils.six import from wagtail/bin/wagtail.py
Previously it was necessary for this script to be entirely valid Python 2 syntax, so that it would get as far as outputting the friendly "unsupported version" error message. However, since dropping Django 1.11 support it is no longer possible to `pip install` Wagtail on Python 2 at all, so this is now a moot point.
* Eliminate remaining imports of django.utils.six
2019-03-18 13:57:51 +00:00
Tom Usher
0f8a55a6ce
Pass validators to FieldBlocks ( #5148 )
2019-03-15 18:42:08 +01:00
Wesley van Lee
c831d434ab
Added an option to the page model to be able to define the amount of subpages underneath a specific parent page
2019-03-15 18:14:05 +01:00
kevinhowbrook
339b6752af
Fix AttributeError on Cloudflare cache invalidation ( #5150 )
2019-03-15 15:40:16 +01:00
kevinhowbrook
7d583a52b9
When two date fields are in the same form, chrome ignores multiple autocomplete=off values. ( #5136 )
2019-03-15 10:58:17 +01:00
Matt Westcott
3c44037b2f
Fix warnings on building documentation ( #5145 )
...
* Fix "Duplicate explicit target name" warnings on extending_draftail.rst
ref: https://github.com/sphinx-doc/sphinx/issues/3921
* Fix 'Unknown target name' warning on third_party_tutorials.rst
* Add docstrings to Page.get_ancestors, get_descendants and get_siblings
Documents the `inclusive` flag and avoids the "Field list ends without a blank line; unexpected unindent" warning when building docs
2019-03-15 02:03:56 +01:00
Md. Arifin Ibne Matin
edfd9afc1d
Add more built-in rich text formats ( #5141 )
2019-03-15 01:39:18 +01:00
Wesley van Lee
a700e1352c
Preserve non breaking white spaces in rich text processing. Fix #4996 ( #5142 )
...
Prevent the initial loading of the rich-text field to replace non-breaking white spaces with normal spaces
2019-03-14 17:31:10 +01:00
Matt Westcott
3e1e67021e
Add release note for #5138 to 2.5 docs
2019-03-14 14:43:28 +01:00
Damian
ef7bd7989e
add form media to user add/edit forms ( #5146 )
2019-03-14 14:42:26 +01:00
Coen van der Kamp
b2c8be0207
Merge pull request #5138 from caspertimmers/copy-page-slug-available
...
fixed #3281 check _slug_is_available when moving page
2019-03-14 14:05:34 +01:00
Matt Westcott
23a89774ad
Deprecation note for #5128
2019-03-14 12:11:16 +01:00
Matt Westcott
9ed662a343
Add formal deprecation for is_ajax=1 on pagination_nav.html
...
Some third-party packages still use it, e.g. 7a74a1d317/wagtailmodelchooser/templates/wagtailmodelchooser/chooser/model_results.html
2019-03-14 11:50:51 +01:00
Matt Westcott
b3ed5cc1cc
Deprecate wagtail.utils.pagination
2019-03-14 11:50:25 +01:00
Matt Westcott
1fe844a0e2
Simplify wagtail.utils.pagination using Paginator.get_page
...
https://docs.djangoproject.com/en/2.1/topics/pagination/#django.core.paginator.Paginator.get_page
2019-03-14 11:50:25 +01:00
Matt Westcott
c827cf0793
Remove URL type switching from pagination_nav; use querystring tag consistently instead
...
This doesn't preserve the old behaviour exactly, but testing across all paginated interfaces shows that it's better than it was (e.g. we're not forgetting to pass the current search term as query_string).
2019-03-14 11:50:25 +01:00
Matt Westcott
57d15ac635
Drop replace_page_param template tag in favour of the more flexible querystring tag
2019-03-14 11:50:24 +01:00
Matt Westcott
188c731e2c
Split ajax pagination nav into its own include
2019-03-14 11:49:17 +01:00
Casper Timmers
389f3262de
Merge branch 'master' into copy-page-slug-available
2019-03-14 09:57:59 +01:00
Andy Babic
b2eee20e1b
Move reversing_urls.rst into a subdirectory with it's own index, and include that index in the modeladmin docs' main toctree
2019-03-14 09:48:02 +01:00
Casper
086c900548
Add release notes for #3281
2019-03-14 09:45:05 +01:00
Casper
a3deeab12c
Correctly test for the presence of the message
2019-03-14 09:28:47 +01:00
Casper
4434887b18
Improve error message
2019-03-13 17:03:02 +01:00
Casper
b8aeeb9f5f
fixed #3281 check _slug_is_available when moving page
2019-03-13 16:38:15 +01:00
Esperk
9f2e4033ea
Abort unfinished ajax before firing new ajax call. Fix #4594 ( #5137 )
...
To prevent showing old results always cancel unfinished query requests before firing a new one
2019-03-13 15:44:12 +01:00
Arthur Holzner
6f6f9b8e46
Added fallback to pageurl ( #4603 )
2019-03-13 12:17:13 +01:00
Thijs Kramer
fdbd7ca2d3
only append model type to button when there is one target model ( #5094 )
2019-03-13 11:35:40 +01:00
Matt Westcott
388c8231c1
Add a table_header_label template tag for page listing headers
2019-03-13 11:27:58 +01:00
Matt Westcott
da55e4bca7
Reverse the logic of the not_sortable_by_type flag
2019-03-13 11:27:58 +01:00
Andy Babic
77a8e3b7c0
Do not allow copies of pages that exceed their models' max_count
...
Update PagePermissionTester.can_move_to() to call on the page class's 'can_create_at()' method, and respond accordingly
Add a SingletonPageViaMaxCount to the test.json fixture for use in page permission tests
Add some tests for PagePermissionTester.can_copy_to()
Create a SingletonPageViaMaxCount in setUp() instead of adding to the fixture
2019-03-13 07:57:25 +10:00
LB Johnston
fc21729a24
add docs with instructions on how to generate urls for modeladmin
2019-03-13 07:41:34 +10:00
Mani
87bbc31d88
Add a setting to apply limit on number of tags that can be added to any tagged model.
2019-03-10 20:48:33 +10:00
Matt Westcott
3fe442ff4d
Add Learn Wagtail to third-party tutorials
2019-03-10 15:57:52 +10:00
Tiago Requeijo
4f5b117250
Fix for emails missing the HTML messages.
2019-03-10 15:38:19 +10:00
patta42
be03eeee2e
Removed redundant try-except ( #5123 )
2019-03-07 20:55:27 +00:00
kevinhowbrook
1248279114
Specify a larger length as the default of 200 isn't always enough ( #5114 )
2019-03-07 11:18:40 +00:00
Andy Babic
e0fc0da491
Remove trailing spaces
2019-03-06 15:14:37 +00:00
Andy Babic
1872865af6
Set self.admin_site to default django admin site in ModelAdmin.__init__()
2019-03-06 15:14:37 +00:00
Thomas Kremmel
4e8f197a9d
allow panels & edit_handler to be defined on ModelAdmin ( #4900 )
2019-03-06 12:26:20 +00:00
Matt Westcott
53cea8bc04
Release note for #4653
2019-03-06 11:24:44 +00:00
Loic Teixeira
9da3a3d975
Update documentation
2019-03-06 11:00:30 +00:00
Loic Teixeira
863d066786
Ensure deconstruct is consistent
...
Regardless of whether it was created with `page_type` or `target_model`.
Similarly to the `__init__` method, we cannot completely deprecate
`target_model` so the `deconstruct` method has to handle both
parameters.
2019-03-06 11:00:30 +00:00
Loic Teixeira
09bc28fc86
Remove deprecation warning
2019-03-06 11:00:30 +00:00
Loic Teixeira
7600f419e8
Deprecate PageChooserBlock's target_model parameter in favour of page_type
2019-03-06 11:00:30 +00:00
Evan Winter
5a34090b4b
Fix typo in api/v2/usage.rst
...
first_publised_at --> first_published_at
2019-03-06 01:19:07 +00:00
Asanka Lihiniyagoda
74218a7e43
Set data-focal-point-* values to be '' instead of 'None' when they are empty.
2019-03-03 10:06:16 +10:00
Matt Westcott
8b7efc0b16
Output current language code in HTML header ( #5091 )
...
Fixes #5051
2019-03-01 11:37:44 +00:00
Matt Westcott
61e1e4c2f9
Add 'wagtail_update_index' as an alias for the 'update_index' command ( #5009 )
...
Fixes #2447
2019-03-01 11:01:41 +00:00
LB Johnston
fa2a0c2d02
add ability for page.copy to copy ParentalManyToMany field relations
2019-03-01 07:11:28 +10:00