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

7053 Commits

Author SHA1 Message Date
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
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
Matt Westcott
d5bc58b183 Mark 'Sites menu' text for translation 2017-03-24 11:37:04 +01:00
Huub Bouma
4d6b18805b added test to check if site icon exists in root explorer 2017-03-24 11:34:10 +01:00
Nick Smith
ec2c56602b #663 add icon to site root pages in explorer listing 2017-03-24 11:34:10 +01:00
Matt Westcott
6aea6a6856 Release note for #3425 / #3494 2017-03-24 11:06:42 +01:00
Huub Bouma
beeb09678a added test for rewritten links in richtext 2017-03-24 11:06:07 +01:00
Gary Krige
162b29b6ed Use specific page when choosing a title
Especially useful in RichText blocks when choosing an internal link that overrides Page url / title functionality
2017-03-24 11:06:07 +01:00
Gary Krige
22617e95a7 Use specific page when populating href 2017-03-24 11:06:07 +01:00
maartenkling
c0c0a58c44 Change buttons for mobile #2780 2017-03-24 10:11:56 +01:00
Will Giddens
40dc7f7aa9 call super in Page.clean 2017-03-23 18:08:14 +01:00
Patrick Gerken
50a16c37db Make installing deps more stable
The old syntax works with bash, but not with zsh. The new syntax works with both.
2017-03-23 18:04:20 +01:00
Wietze Helmantel
285d9f0b43 Ticket #2918 added is_preview flag to serve_preview methods 2017-03-23 17:58:18 +01:00