Commit graph

7432 commits

Author SHA1 Message Date
Karl Hobley
447f163d2e Fix __isnull=True lookup for Elasticsearch 5 2017-11-16 17:21:45 +00:00
Karl Hobley
4b96f5eba3 Fix values_list subqueries in Elasticsearch queries 2017-11-16 17:21:45 +00:00
Matt Westcott
9931ca5f15 Release note for #4018 2017-11-16 17:04:46 +00:00
Matt Westcott
0451fc730f Add tests for searching on the Page model 2017-11-16 16:22:29 +00:00
Matt Westcott
f4db4fcea9 Backport fix for converting SearchRank weight list, from 781263d4e1 2017-11-16 16:22:29 +00:00
Martin Sandström
857e397870 Fix syntax error in ImageRenditionField example 2017-11-12 18:09:14 +00:00
Matt Westcott
50f50d77f3 Update warning re ATOMIC_REBUILD on Elasticsearch >= 5.4
It appears that the bug may have reappeared in 5.5 final. Fixes #3985
2017-11-03 15:55:32 +00:00
Matt Westcott
58e8765116 Release note for #3974 backport to 1.12.x 2017-11-03 15:23:49 +00:00
Stein Strindhaug
f65d961ae0 Tolerate sites where all pages are private (#3974)
When all pages on a site is private, the last_mods set will be empty
causing a crash when trying to get the max value from it.
This fix adds a test that the set is truthy (not empty) before calling
max.
2017-11-03 15:22:31 +00:00
Matt Westcott
8d421fd84f Release note for #3912 backported to 1.12.x 2017-11-03 15:01:39 +00:00
Matt Westcott
4c98163c71 Pin django-rest-framework to <3.7 to preserve Django 1.8 support 2017-11-03 14:59:43 +00:00
Matt Westcott
d5964b3bfa Add release note for #3973 backported to 1.12.x 2017-11-03 14:47:06 +00:00
Karl Hobley
90153e31c8 Fix AttributeError in listing_view endpoint
Fixes #3967

If there was no site configured, the listing views in the API would
break with an AttributeError.

Now, the following happens if there is no site record:
 - In the Admin API, all pages are returned but links in the response do
not include a domain name
 - In the Public API, no pages are returned
2017-11-03 14:44:07 +00:00
Matt Westcott
7175cd8d9b Version bump to 1.12.2 2017-09-18 21:44:07 +01:00
Matt Westcott
976d915dd5 Fill in release date for 1.12.2 2017-09-18 21:43:44 +01:00
Matt Westcott
64f8e23f31 Change StreamField examples to use explicit required=False instead of required=True 2017-09-18 21:35:09 +01:00
Matt Westcott
b1b9775e52 Explicitly state that required defaults to true on StreamField blocks 2017-09-18 21:35:09 +01:00
Matt Westcott
06ea3fb301 Clarify interaction between StreamField's blank property and StreamBlock's required property 2017-09-18 21:35:08 +01:00
Matt Westcott
7cf38f115c Set preview dropdown button to 250px (desktop) / 100% (mobile)
Re-fixes #3784, without breaking non-dropdown save buttons as a side effect (#3836).
2017-09-13 15:48:36 +01:00
Matt Westcott
a1b395d851 Revert "Fix preview button dropdown styling (#3785)"
This reverts commit a60aa1bfe2.
2017-09-13 15:48:36 +01:00
Matt Westcott
1bdd26ea41 Fix test for Python 2.x 2017-09-09 00:43:09 +01:00
Mitchel Cabuloy
bdeb104804 Fix OEmbed endpoints 2017-09-08 17:56:15 +01:00
Matt Westcott
28907c14db Don't call static() when constructing HalloPlugins
This isn't necessary, since Django form media fills in static paths itself - and doing it at module level will break on startup with certain staticfiles configurations if collectstatic hasn't run yet. Fixes #3829
2017-09-07 16:22:13 +01:00
Venelin Stoykov
f0e9258af9 Make it possible to reverse migrations 2017-09-06 16:35:54 +01:00
Matt Westcott
d17caef271 Add release note sections for 1.12.2 2017-09-06 16:28:37 +01:00
Matt Westcott
42d34b66a6 version bump to 1.12.1 2017-08-30 17:23:18 +01:00
Matt Westcott
c122279852 fill in release date for 1.12.1 2017-08-30 17:22:39 +01:00
Lucas Moeskops
9d14d4ad74 Fixed wrong argument for datetimechooser widget
The argument for specifying the language of the DateTimeChooser is wrong, which makes it impossible to customise the language. Compare for reference the argument specification for the DateChooser and the TimeChooser :-)
2017-08-30 16:44:59 +01:00
Ben Sturmfels
95f41fd90c Remove unused import in docs snippet. 2017-08-30 16:26:52 +01:00
Ben Sturmfels
b26d711e56 Update docs for Amazon ElasticSearch service as backend.
This change moves the "connection_class" key into "OPTIONS", resolving error
``AttributeError: 'AWS4Auth' object has no attribute 'encode'``.
2017-08-30 16:25:41 +01:00
Timothy Allen
9959d65d5a Minor documentation example fix; bold and italic should be spelled out explicitly. (#3779) 2017-08-30 16:25:05 +01:00
Matt Westcott
e902d3bdf3 Release note for #3799/#3820 2017-08-30 16:18:25 +01:00
Matt Westcott
7cdf2f490e Make get_admin_display_title fall back on live title 2017-08-30 16:18:23 +01:00
Mikalai Radchuk
99fdd8db42 Fix project template
We should create a home page with the draft_title
2017-08-30 16:18:22 +01:00
Matt Westcott
f0c7d5dc08 Release note for #3785 2017-08-29 11:48:00 +01:00
Jack P
c50b0c7715 Fix preview button dropdown styling (#3785)
Fixes #3784
2017-08-29 11:41:43 +01:00
Matt Westcott
29cfe39ddf Fetch new translations from transifex 2017-08-21 14:27:31 +01:00
Matt Westcott
f8654625f0 Fill in release date for 1.12 final 2017-08-21 14:02:19 +01:00
Matt Westcott
ceb42f9d11 Version bump for 1.12 final 2017-08-21 13:56:35 +01:00
Matt Westcott
f10b4665cd Version bump for 1.12rc1 2017-08-11 12:02:52 +01:00
Tomasz Knapik
80c846a0cf Add help_text to DecimalBlock and RegexBlock 2017-08-11 11:48:51 +01:00
Jeffrey Chau
c26e019ed1 Followup to #3640. Fix hidden field rendering in other document forms 2017-08-11 11:25:04 +01:00
Matt Westcott
7a1455551b Move logo animation code to core.js, as per https://github.com/wagtail/wagtail/pull/3740#pullrequestreview-55668086 2017-08-11 11:04:18 +01:00
Karl Hobley
2e81c30ca5 Changelog/release note for #3344 2017-08-11 10:18:21 +01:00
Matt Westcott
b376da022f Grammar nitpick ('By default' sounds more natural than 'Per default') 2017-08-11 09:58:44 +01:00
Matt Westcott
913607c939 Take MRO into account when constructing RoutablePageMixin's list of routes
This ensures that routes can be overridden in subclasses, while still respecting the definition order within a class definition.
2017-08-11 09:58:44 +01:00
Andreas Nüßlein
44a1c28481 Update tests.py 2017-08-11 09:58:44 +01:00
Andreas Nüßlein
39bca11283 added default index_route for RoutablePageMixin
RoutablePageMixin has a default index_route method that is decorated
with `@route(r'^$')`. This way, including RoutablePageMixin doesn't
force you to re-enable the default functionality you would expect from a
Page anyways.
index_route behaves exactly like a standard Wagtail Page.
To override the default behaviour, one can simply override the route by
decorating another function with r'^$'.

(as disussed in issue #2866)
2017-08-11 09:58:44 +01:00
kapito
e008838d53 Non-obstructive navbar toggle icon
Changes the design of the navbar toggle slightly so that it no longer obstructs page headers.
Currently: https://cdn.pbrd.co/images/GAruhHC.png, https://cdn.pbrd.co/images/GArxXtn.png
With fix: https://cdn.pbrd.co/images/GArvF7ec.png, https://cdn.pbrd.co/images/GArwp3o.png
2017-08-11 03:41:51 +03:00
Matt Westcott
5c0fc1197b Generate new strings for translation again (for the word 'Swedish'...) 2017-08-10 17:06:06 +01:00