0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

7089 Commits

Author SHA1 Message Date
Andreas Nüßlein
bfd4a2ef4b Adding the Meta attribute group to Blocks.
The idea is that Streamfield-Blocks can be grouped in the CMS
by setting Meta's `group` attribute.
This gives a better overview, particularly with many blocks.
If the attribute remains unset, nothing changes.
2017-04-10 20:27:32 +01:00
Matt Westcott
922260833b Release note for #3423 2017-04-10 19:18:37 +01:00
Andy Babic
aef2428072 Improve rendering of ManyToManyField values (or any other property / attribute that returns a Manager) in InspectView (#3423)
* Fix for #3298
* Improve rendering of ManyToManyField values (or any other property / attribute that returns a Manager) in InspectView
2017-04-10 19:14:40 +01:00
Bertrand Bordage
9132bcc23d Adds Ross Curzon-Butler to CONTRIBUTORS. 2017-04-08 21:41:52 +02:00
Bertrand Bordage
985ac8d1c4 Update 1.10.rst 2017-04-08 21:10:30 +02:00
Bertrand Bordage
263b91b69a Update CHANGELOG.txt 2017-04-08 21:09:39 +02:00
Bertrand Bordage
49d804d831 Merge pull request #3415 from jjanssen/fix/1511
Fixes hallotoolbar misplacement within StreamField StructBlock
2017-04-08 21:06:51 +02:00
Janneke Janssen
b4beb864dd Update PR with feedback 2017-04-08 15:44:58 +02:00
Janneke Janssen
0f39001e46 Fixes hallotoolbar misplacement within StreamField StructBlock 2017-04-08 15:38:29 +02:00
Bertrand Bordage
ce251fbd96 Update 1.10.rst 2017-04-08 14:37:44 +02:00
Bertrand Bordage
e952f35c9d Update CHANGELOG.txt 2017-04-08 14:37:00 +02:00
Bertrand Bordage
c707f6c0b7 Merge pull request #3445 from cho-leukeleu/patch-2
StreamFieldPanels do not accept classname attribute
2017-04-08 14:28:46 +02:00
Bertrand Bordage
8cf37bc877 Merge pull request #3460 from rosco77/patch-1
[Docs] Removes common prefix from i18n_patterns.
2017-04-08 01:53:18 +02:00
Matt Westcott
084cf0a56f Require modelcluster >= 3.1 2017-04-07 16:52:59 +01:00
Matt Westcott
fb82650943 Release note for Django 1.11 compatibility - fixes #3314 2017-04-07 16:52:31 +01:00
Bertrand Bordage
c2638fc3ad Stop allowing failures on Django 1.11 (except with elasticsearch). 2017-04-06 22:49:24 +02:00
Bertrand Bordage
8ed083fc36 Updates 1.10.rst. 2017-04-06 20:10:10 +02:00
Bertrand Bordage
2c240631bb Adds CHANGELOG notes for #3462 & #3523. 2017-04-06 20:02:17 +02:00
Bertrand Bordage
6dbe070e27 Merge pull request #3523 from savoirfairelinux/fix-3513
Fixed #3513 -- Fixed API pagination for empty searches
2017-04-06 19:47:06 +02:00
Bertrand Bordage
d36fe2b253 Merge pull request #3462 from kaedroho/feature/images-in-api-simple
Allow custom field classes to be used in api_fields
2017-04-06 19:41:29 +02:00
Morgan Aubert
0cb16f2a01 Ensured BaseSearchBackend.search method always return BaseSearchResults subclasses 2017-04-06 12:49:15 -04:00
Morgan Aubert
2b09cdaef2 Refactored total_count computation line 2017-04-06 10:40:48 -04:00
Karl Hobley
fd9db9335a Docs edits 2017-04-06 15:27:34 +01:00
Karl Hobley
141c1d6568 Fixed admin API tests 2017-04-06 15:21:43 +01:00
Karl Hobley
7e160edad6 Docs 2017-04-06 15:17:57 +01:00
Morgan Aubert
9be68178e4 Fixed #3513 -- Fixed pagination for empty searches 2017-04-06 10:03:34 -04:00
Karl Hobley
12fa1ebee8 Fix API v1 tests
We're updated the BlogEntryPage model to use class-based api_fields but
API v1 doesn't support them. This commit adds enough compatibility to
make the v1 API tests work but issues a warning if the v1 API module
encounters any new style configs that it doesn't support.
2017-04-06 10:22:02 +01:00
Karl Hobley
726e85f4a6 Simplified API fields getter methods 2017-04-06 09:41:19 +01:00
Bertrand Bordage
eef46dde92 Fixes the Django 1.11 ORM compatibility issue. (#3499)
* Fixes the Django 1.11 ORM compatibility issue.

* Fixes non-subquery __in search queries in elasticsearch.

* Code styling.

* Import order issue.
2017-04-06 09:29:00 +01:00
Matt Westcott
e62663e2b3 update modelcluster/taggit in doc dependencies 2017-04-05 22:08:38 +01:00
Matt Westcott
6d553ab396 Document that 'format' on Date(Time)Block must be one of the recognised DATE(TIME)_INPUT_FORMATS 2017-03-31 16:46:00 +01:00
Matt Westcott
884eb631c7 Remove help text from golive / expiry date fields
The only purpose it served was to tell you the date format - which is redundant since the date picker does that for you, and is no longer accurate when the format has been customised.
2017-03-31 16:30:28 +01:00
Bojan Mihelac
0f53afc5a6 Adds support for custom date and datetime formats (#2595)
It is possible to set default format for date/datetime inputs. This works together
with standard django localization.

    # django settings
    USE_I18N = True
    LANGUAGE_CODE = 'sl'

    # wagtail settings
    WAGTAIL_DATE_FORMAT = '%d.%m.%Y.'
    WAGTAIL_DATETIME_FORMAT = '%d.%m.%Y. %H:%M'

DateBlock, DateTimeBlock accepts additional keyword argument `format`.
2017-03-31 16:30:27 +01:00
Nick Smith
48949e69a7 Add to StreamField migrations documentation
- Add example code for migrating draft pages and page revisions
2017-03-30 21:37:12 +01:00
Matt Westcott
72a1b82e3e Release note for #3068 2017-03-30 17:38:44 +01:00
Tim Heap
28d69fc030 Do not show summary items if user has no permissions 2017-03-30 17:34:29 +01:00
Tim Heap
f1731e0646 Stop users without page permissions from browsing pages 2017-03-30 17:34:28 +01:00
Tim Heap
c5017ce0c2 Hide page search from users without any permissions 2017-03-30 17:21:14 +01:00
Andreas Nüßlein
421eb9ef8a a few too many quote's
pk = quote(getattr(obj, self.opts.pk.attname))
    self.url_helper.get_action_url('edit', quote(pk))   # < this was a little unneccessary, double function calls in multiple locations
2017-03-30 17:06:01 +01:00
Karl Hobley
babe8a0c09 Fix annotate_score followed by slice (#3518)
This fixes the bug reported by @nimasmi in
https://github.com/wagtail/wagtail/issues/3431#issuecomment-288051751

Slicing creates a new SearchResults object but the ``score_field`` (set
by ``.annotate_score()`` wasn't being passed along to the new
SearchResults causing the score to not be annotated.
2017-03-30 14:24:17 +01:00
Matt Westcott
cc52c1b1ca Revert "Fixes ticket #2251. Implemented is_multipart on EditHandler and created tests." (#3519)
See https://github.com/wagtail/wagtail/pull/3501#issuecomment-290380892 - this change wrongly assumes that edit handlers will always be used with a ClusterForm, and a fix isn't required here anyway because it was fixed separately as https://github.com/wagtail/django-modelcluster/pull/73.

This reverts commit a6bb67f75d.
2017-03-30 14:16:46 +01:00
Karl Hobley
84d6262ca5 Renamed field_configs to field_serializer_overrides 2017-03-30 11:12:08 +01:00
Karl Hobley
161d55565b Updated to use APIField class in api_fields
Thanks to @BertrandBordage for the suggestion!
2017-03-30 11:08:33 +01:00
thenewguy
77c00ee77e Use field prep_db_value for raw query expansion (#3510)
Since the user model can be swapped out the primary key cannot be naively converted to string this way.  Call db_prep_value first.
2017-03-29 17:35:24 +01:00
Thijs Kramer
6a87e90171 Adjust the filter button height to match the height of the input fields next to it 2017-03-28 19:54:46 +02:00
Michael van Tellingen
f1dabaef04 Replace coveralls with codecov.io (#3509)
See #3506 for more information
2017-03-28 11:23:14 +01:00
Matt Westcott
df4708f088 switch coveralls badge to wagtail/wagtail repo 2017-03-28 10:52:29 +01:00
Andy Babic
37bbbb9dba Improved code separation in contrib.modeladmin (#3467)
* Split `helpers.py` into separate `url.py`, `permission.py` and `button.py`, dedicated to those separate concerns and update the docs accordingly

* Move `ThumbnailMixin` out to `mixins.py` and update documentation accordingly

* Ad #NOQA to import lines to hush pep errors

* Alphabetise helper import order

* - Delete `helpers/helpers.py`
- wagtal -> wagtail in docs
2017-03-28 10:34:03 +01:00
Mikalai Radchuk
35a1af2b3b Release notes for #3482 2017-03-27 20:28:45 +03:00
Ramon de Jezus
df12154216 Added a titletag for the “Pages using <model>” page 2017-03-27 20:17:27 +03:00