0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

7269 Commits

Author SHA1 Message Date
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
Michael van Tellingen
8decb577ce Add appyveyor config (#3505)
* Add appyveyor config

This commit does add settings for using mssql on appveyor
but there are still some issues with timeouts. For now only
the sqlite build is enabled.

Note that the build currently (correctly) fails on windows

* Fix unittests on Windows (in wagtaildocs)

The document.file.name attribute doesn't contain a valid path separator
on windows. Use document.file.path for comparison instead.
2017-03-27 13:10:25 +01:00
Janneke Janssen
4ab57ddd1f Fixes invalid focal_point for hiding the marker if no focal point is applicable 2017-03-26 13:30:56 +02:00
maartenkling
270ac669a8 Added remove focalpoint button 2017-03-26 13:27:35 +02:00
Kees Hink
a2b9c2bfe4 Document pep8 issues to ignore (#3503)
* Docs: E501 is not the only PEP8 violation we accept.

* Add the list of PEP8 violations we accept to tox.ini
2017-03-25 15:10:12 +01:00
Michael van Tellingen
ee567a4db3 Move the code from Site.find_for_request() to separate module (#3500)
Create ``sites.get_site_for_hostname(hostname, port)`` for better
reusability.

Co-authored with @mikedingjan
2017-03-25 13:25:16 +01:00
Wietze Helmantel
a6bb67f75d Fixes ticket #2251. Implemented is_multipart on EditHandler and created tests. 2017-03-25 13:20:24 +01:00
Christine Ho
78a2e8ae96 Display a comma separated string for fields returning content as lists 2017-03-24 14:30:01 +01:00
Rob Moorman
d5d23b01a5 Fix missing target for django-bakery docs 2017-03-24 14:27:59 +01:00
Ralph Jacobs
87a7a798c9 Change scroll factor to make it more userfriendly 2017-03-24 14:01:17 +01:00
Ralph Jacobs
e262867c7a Upgrade vendor library 2017-03-24 13:54:38 +01:00
Kees Hink
6961f33078 Restrict view_draft to can_publish / can_edit permissions (#3474) 2017-03-24 11:54:10 +01:00
Janneke Janssen
20e8aabdf9 Release notes for #3291 / #3481 2017-03-24 11:52:38 +01:00
Janneke Janssen
5b5e5848ca Removed left over icon-user class within the user listing 2017-03-24 11:47:16 +01:00
Janneke Janssen
7e3030ed90 Removed icon-user class from the avatar within the styleguide 2017-03-24 11:47:16 +01:00
Thijs Kramer
d1aace4af2 Remove icon classes from avatars and remove the check if a user has an email address 2017-03-24 11:47:16 +01:00
Thijs Kramer
07a9174e92 Remove :before style rules from avatar class 2017-03-24 11:47:16 +01:00
Thijs Kramer
0378572237 Make mystery man the default Gravatar image 2017-03-24 11:47:16 +01:00
Thijs Kramer
1386667a2e Remove user icon from avatar 2017-03-24 11:47:16 +01:00
Thijs Kramer
5de897f55b Remove icon classes and add alt attribute to avatar image 2017-03-24 11:47:16 +01:00
Matt Westcott
b229953c0f Release note for #3439 / #3495 2017-03-24 11:41:45 +01:00