Wykres commitów

6816 Commity (4ea06426ab0a8e64daaa54faa7949c54882b204b)

Autor SHA1 Wiadomość Data
Tim Heap 839db55abe Hopefully fix intermittent test failures
Something was polluting the edit handlers with rich text fields that
then failed somewhere else due to missing configs. I'm not sure exactly
where and what the leakage was, but the test now pass consistently for
me so hopefully this fixed it? 🤷
2016-10-27 20:33:55 +01:00
Vincent 46724f6954 More helpful message if javascript is not activated. (#3110)
* More helpful message if javascript is not activated.

* Clearer message when noJS

* Updating the CSS to make the noJS message look nicer on mobile version.
2016-10-27 20:30:04 +01:00
Sævar Öfjörð Magnússon 169045b186 Loop through all multiple value fields when sending form submission by email.
A form field with multiple checkboxes may introduce submissions that have more than one value. The `send_email` function would loop through all form fields and grab only the first item of each field, ignoring fields that may have multiple values selected. This is a side effect of using `QueryDict.get()`, which will only return the last value of a list.

This commit fixes that by first converting the `QueryDict` instance to a regular dict of lists so that `get` will return all values, then joining multiple items if needed.
2016-10-27 20:24:25 +01:00
Mikalai Radchuk b4d17d8377 Changelog for #3071 2016-10-27 16:46:38 +03:00
Mikalai Radchuk f28bcaa003 Release notes for #3071 2016-10-27 16:42:14 +03:00
Matt Westcott 59440c92f1 Update PageViewRestriction model to support group/login restriction type
Update page privacy form with login/group options

Add unit tests for setting group-based permissions

Add a basic login page to wagtailcore

Implement front-end logic for group and login-based permissions

Allow overriding the frontend login template name with WAGTAIL_FRONTEND_LOGIN_TEMPLATE

Add documentation for customising the login page

Add message on login page for authenticated users who don't have access
2016-10-27 16:42:08 +03:00
Matt Westcott 2442416e93 Release notes for #3072 2016-10-26 13:09:40 +01:00
Tim Heap 9d54031a50 Add PageChooserBlock target_model option
It allows selecting a restricted subset of pages, like with the
PageChooserPanel
2016-10-26 13:01:46 +01:00
Tim Heap 4d8bfc1b2f Start the page chooser at the most relevant page
Using the new `Page.objects.first_common_ancestor()`, page choosers that
are restricted to a certain page type start at the most relevant parent
page to make selecting a page easier.
2016-10-26 13:01:46 +01:00
Tim Heap d377f0c521 Add Page.objects.first_common_ancestor() method 2016-10-26 13:01:46 +01:00
Jaap Roes 10bcb50fff Recommend Django's cached template loader
As noted in PR #3077:

    "With the cached template loader enabled, there's a significant performance improvement"
2016-10-26 13:24:36 +02:00
Benjamin Bach 4a92505c3b set_url_paths Django 1.10 friendly, add a test 2016-10-26 09:59:53 +01:00
Jaap Roes fb06f6c0c1 Fixed #3078 -- Add empty panel attributes
Accessing any of these attributes before importing `wagtailadmin.edit_handlers` would raise a `AttributeError`. In some cases this would mask the actual error; e.g. forgetting to import `wagtailadmin.edit_handlers`.
2016-10-25 16:43:18 +01:00
Nick Smith 992b315be6 Use paginator.count, not page|length, in header
Fixes #3097
2016-10-25 15:29:29 +01:00
Matt Westcott a326cd8559 Custom Page Manager documentation fix
Thanks to @nimasmi for reporting!
2016-10-25 11:48:02 +01:00
Matt Westcott bb37dec700 WMABaseView.get_context_data should pass updated context 2016-10-24 22:11:58 +01:00
Andy Babic 9f92f894b8 Improve consistency of modeladmin views 2016-10-24 22:10:34 +01:00
Andy Babic 78f67f8fdb * Gives the `result_row_display` control over the `<tr>` element for each row in `IndexView` by shifting the `<tr>` out of `result_list.html` and into `result_row.html`
* `result_row_display` adds a `data-object_pk` attribute to each row, to make items easier to identify with JS
* Adds `get_extra_attrs_for_row()` method to `ModelAdmin`, to give developers a way of adding further attributes to the `<tr>` element
2016-10-21 17:20:54 +01:00
Tom Dyson 512bf8936d single typo in Cloudfront docs (#3099) 2016-10-20 15:25:27 +01:00
Matt Westcott acc69096d3 Fetch translations from Transifex 2016-10-20 11:29:28 +01:00
Matt Westcott 162f845e66 Specify Elasticsearch <3.0 for tests 2016-10-20 10:51:29 +01:00
Matt Westcott 2ce6ec8046 Mark 1.7 as no longer in development
Conflicts:
	CHANGELOG.txt
2016-10-20 10:25:18 +01:00
Mikalai Radchuk f432eca0b2 Update Framework classifiers in setup.py (#3089) 2016-10-17 14:11:21 +01:00
pure-zero 800bfa7c16 should use rest_framework not restframework (#3087) 2016-10-15 10:58:00 +01:00
Dan Braghis e0e957f92a Fix page chooser parent link on row hover [#3080] 2016-10-14 10:39:09 +01:00
Matt Westcott 8527e9710c Fix 1d33cc7838 for Django <1.10 compatibility 2016-10-13 21:35:36 +01:00
Gagaro 1d33cc7838 Fix: remove responsive behavior in embed when there is no ratio available 2016-10-13 17:40:30 +01:00
Gagaro 49421e5a41 Fix: Use specific page model for the parent page in the explore index 2016-10-13 16:28:48 +01:00
Alex ee4e2ed27b Add site name to `<title>` element in the project template 2016-10-13 16:21:50 +01:00
Henk-Jan van Hasselaar 8a3c47f76a Use get_admin_display_title in admin 2016-10-13 15:46:12 +01:00
Gagaro 9710c292eb Added getters for templates in `AbstractForm` 2016-10-13 15:08:49 +01:00
Matt Westcott 0cf3b13a1d Release note for #3075 2016-10-13 14:54:34 +01:00
Tim Heap b6fe08a634 Docs for get_image_model/get_image_model_string 2016-10-13 11:55:21 +02:00
Tim Heap 1b8d307316 Import get_image_model from its new location 2016-10-13 12:33:09 +11:00
Tim Heap 29d138d16d Move get_image_model, add get_image_model_string
Having `get_image_model` at `wagtail.wagtailimages` is consistent with
django.contrib.auth.get_user_model, and means developers can import
`get_image_model` in an environment where models are not yet ready.

`get_image_model_string` has been added for uses where the model itself
is not required, and might not be available, but a reference to the
possibly swapped out Image model is required.
2016-10-13 12:33:09 +11:00
Mikalai Radchuk 84c36c1ec2 Fixup isort 2016-10-10 15:25:44 +03:00
Mikalai Radchuk c416924246 Fixup flake8 2016-10-10 15:19:49 +03:00
Mikalai Radchuk 2e1c58a586 Release notes for #3047 2016-10-10 14:24:01 +03:00
Axel Haustant e893dd895b Allows to define custom site settings edit handler
Added site settings edit handler tests

Ensure proper setting rendering with tabs
2016-10-10 14:23:57 +03:00
Matt Westcott a3ba533afb start work on 1.8 / remove deprecated features (#3058)
* Version bump to start work on Wagtail 1.8

* Remove features deprecated in Wagtail 1.8
2016-10-07 16:02:04 +01:00
Matt Westcott b658b44e1b Add upgrade consideration note re 'embed' becoming a template tag 2016-10-07 15:44:15 +01:00
Karl Hobley 07a4eca48f Fix typos
recieve => receive
2016-10-06 16:20:29 +01:00
Matt Westcott f00fe21da2 Generate new strings for translation 2016-10-05 16:38:48 +01:00
Matt Westcott cfc077b3c6 Fetch new translations from Transifex 2016-10-05 16:28:28 +01:00
Matt Westcott 534b5d1fd9 Release note for #2474 2016-10-05 16:03:54 +01:00
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