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

6821 Commits

Author SHA1 Message Date
Matt Westcott
7ec734e925 Document how to chain image operations in the image serve view (ref #908) 2016-10-05 15:54:05 +01:00
Karl Hobley
2a6f908972 Various docs tweaks
Thanks @tomdyson for spotting!
2016-10-05 15:54:05 +01:00
Karl Hobley
a449e2d8b2 Added tests for jpegquality filter 2016-10-05 15:54:05 +01:00
Karl Hobley
af9d4ae5a3 Added tests for format filter 2016-10-05 15:54:05 +01:00
Karl Hobley
6c57b5b280 Docs for format and jpegquality image filters
This also fixes #1205
2016-10-05 15:54:05 +01:00
Karl Hobley
43e0b9d237 Added "original_format" into initial environment 2016-10-05 15:54:05 +01:00
Karl Hobley
f58eb6ef28 Added 'format' template filter
This allows the developer to change the output format of an image placement
2016-10-05 15:54:04 +01:00
Karl Hobley
b20cce01aa Added 'jpegquality' image filter
This allows the developer to adjust the output quality of JPEG images on a per-placement basis
2016-10-05 15:54:04 +01:00
Karl Hobley
79348d427f Backwards compatibility for 3-argument run methods 2016-10-05 15:54:04 +01:00
Karl Hobley
ee24881e71 Added new env argument to ImageOperation.run
This is set to a mutable dictionary that is passed between the image operations. It can be used for image operations to send messages to later operations and Wagtail.
2016-10-05 15:54:04 +01:00
Matt Westcott
42506e6fd8 rewrite get_upload_to logic to eliminate loop and avoid reinventing os.path.splitext 2016-10-05 15:44:20 +01:00
Ricky Robinett
9c0968ad12 Fix bug where filenames with no extension cause an infinite loop 2016-10-05 15:26:29 +01:00
Aymeric Augustin
a108f16eff Fix preview when SECURE_SSL_REDIRECT = True.
Fix #3048.
2016-10-05 15:01:36 +01:00
Matt Westcott
b4a4e5eb92 Pass update_all_types=True to put_mapping on ES2 - workaround for #2968 2016-10-05 13:45:43 +01:00
Karl Hobley
882facf352 Optimise JPEG images when generating renditions
We've recently added support in Willow to make use of Pillow's image optimisation. This commit enables this in Wagtail.

All JPEGs are now optimised and saved in progressive format.
2016-10-05 12:24:11 +01:00
Matt Westcott
5dc5a32adc release note for #3039 2016-10-05 12:17:57 +01:00
Matt Westcott
2992782c99 Unlink previously existing links when turning a selection into a link 2016-10-05 12:16:16 +01:00
Matt Westcott
09fccb2624 Rewrite hallo-wagtaillink.js logic to preserve existing link elements/content instead of replacing text
Fixes #3026
2016-10-05 12:16:16 +01:00
Matt Westcott
ca8e41de99 Add prefer_this_title_as_link_text hints to the external/email link responses
These indicate whether the user has explicitly entered something into the link text field,
and therefore we should use their text in preference to keeping the existing link/selection
content intact.
2016-10-05 12:16:16 +01:00
Matt Westcott
239145290f Refactor email/external link chooser views (no functional changes) 2016-10-05 12:16:16 +01:00
Matt Westcott
f45181764b Set a related_name of wagtail_userprofile on wagtailusers.UserProfile
This prevents it from clashing with other userprofile models defined elsewhere in the project. Fixes #3025
2016-10-05 12:13:53 +01:00
Mikalai Radchuk
3833b0cba8 Tests: New features for wagtailforms (#2978) 2016-10-04 14:59:21 +01:00
Matt Westcott
999281f05b Conditionally escape replace_page_param result for correctness on Django 1.8 2016-10-03 20:09:21 +01:00
Matt Westcott
0ba56b5d58 pep8 fix 2016-10-03 18:34:52 +01:00
Matt Westcott
561f0a7cff Add test for image pagination preserving URL params 2016-10-03 18:31:17 +01:00
Bojan Mihelac
51bcecf368 Fixes Images / documents pagination (#2700)
Refactored pagination_nav template to allow empty linkurl in which case
url is created replacing page in QUERY_STRING.
2016-10-03 18:31:17 +01:00
Thibaud Colas
5d84c666bb Trim trailing whitespace in all files but Markdown (#3044) 2016-10-03 14:57:08 +01:00
Janneke Janssen
2992d90e97 Account settings button (#2805) 2016-10-03 12:21:38 +01:00
Liam Brenner
769ad6deb8 Fix documentation typo (#3042) 2016-10-03 09:04:39 +01:00
Mikalai Radchuk
90552bedb5 Fix site ref in docs 2016-10-01 22:04:46 +03:00
Nick Smith
df9a5e31fa Allow referencing models by string representation in SnippetChooserBlock 2016-09-30 17:11:51 +01:00
Matt Westcott
4b516c0735 Add tests for SnippetChooserBlock 2016-09-30 17:04:51 +01:00
Matt Westcott
17c7445d47 Fill in release date for 1.6.3 2016-09-30 10:39:29 +01:00
Matt Westcott
611f95b0c7 Adjust testapp migration dependency to be valid on 1.6.x 2016-09-30 10:22:30 +01:00
Matt Westcott
869349f86c Release note for #3017 2016-09-30 10:06:44 +01:00
Matt Westcott
facf19df95 Implement value_omitted_from_data on Block
This allows Django >=1.10.2's ModelForm logic to determine whether or not the field has been omitted
from the form submission (and should thus revert to the initial or default value), since the default
rule of "look for an item in the postdata matching the field's name" doesn't work for Block-based
fields such as StreamField.

Fixes #2994 for Django 1.10.2 and above (assuming https://github.com/django/django/pull/7217 gets merged
without major changes...)
2016-09-30 09:58:57 +01:00
Matt Westcott
bb1ae7551f Add a dont_use_model_field_default_for_empty_data flag to BlockWidget to stop Django 1.10.1 from skipping it
Fixes #2994 for Django 1.10.1 ONLY.
2016-09-30 09:58:56 +01:00
Andy Babic
0c1b67bc16 Add documentation to help with customisation of contrib.modeladmin 2016-09-28 20:52:19 +01:00
Gagaro
7233918ef0 Fix site index layout (#3033) 2016-09-28 18:51:39 +01:00
Matt Westcott
4edcb61c6a Ensure form submission listing is explicitly ordered by submit_time 2016-09-27 16:31:53 +01:00
Matt Westcott
53abc7477f Fix dropdown font size to match new button font size from #2985 2016-09-27 01:25:36 +01:00
Matt Westcott
e31b26c4db Eliminate dependencies on __latest__ migrations
See https://groups.google.com/d/msg/wagtail/a1lbdKe-QPk/GefsBFnRBgAJ - using __latest__ prevents us from ever applying migrations that are subsequently added to the referenced apps, since logically those migrations must have been applied before the current one (which they weren't, because they didn't exist). This logic is enforced as of Django 1.10.
2016-09-26 17:57:52 +01:00
Thibaud Colas
b13441e108 Use better JS source maps during development (#3019)
See http://webpack.github.io/docs/configuration.html#devtool
2016-09-26 15:24:02 +01:00
Matt Westcott
c9a39db196 Generate new strings for translation 2016-09-22 16:00:54 +01:00
Matt Westcott
766636edbc Pull new translations from Transifex 2016-09-22 15:51:29 +01:00
Matt Westcott
674af5586b Prevent USE_THOUSAND_SEPARATOR from breaking the rendering of maxForms in InlinePanel's JS code
Fixes #2699. Thanks to Mattias Loverot for the report and original fix.
2016-09-22 15:07:23 +01:00
riceyrice
5869bc37bb Allow configuration or override of QueryDailyHits garbage collection 2016-09-22 14:21:38 +01:00
Mikalai Radchuk
48296e7568 Release notes for #3016 2016-09-22 14:43:53 +03:00
Mikalai Radchuk
fb93a6d6b9 Allow to limit access to form submissions (#3016)
Add the filter_form_submissions_for_user hook

Thanks @kaedroho for the code review and docs.
2016-09-22 14:36:39 +03:00
Karl Hobley
9a57e39cfd Implemented annotate_score on SearchResults
This allows the user to retrieve the scores for each search result:

    for page in Page.objects.search("Hello").annotate_score('_score'):
        print(page.title, page._score)
2016-09-22 12:03:23 +01:00