0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
Commit Graph

6892 Commits

Author SHA1 Message Date
Matt Westcott
3917730f5f Update pull request message to mention the need for linting and tests/docs
Also remove Markdown formatting for header / links (because the user usually won't see the formatted version anyhow)
2016-11-09 10:35:14 +00:00
Matt Westcott
d9c27f0325 Tell developers to use the bundled version of six (we don't install it as a dependency any more) 2016-11-09 10:35:12 +00:00
Matt Westcott
d337412af4 Fix links to contributing guidelines 2016-11-09 10:35:11 +00:00
Tom Dyson
d68c015658 Specify Github merge option for minor doc fixes (#3144) 2016-11-08 09:57:15 +00:00
Janneke Janssen
24eee6e41e [FIX] Cloudfront docs typo (#3143) 2016-11-08 09:42:46 +00:00
Matt Westcott
59e9a31bc1 Document the fact that a matching version of the elasticsearch package must be used 2016-11-04 11:14:12 +00:00
Hammy Goonan
7cdc1cd0aa Closing p tag on home_page template. 2016-11-04 10:39:55 +00:00
Matt Westcott
8de1b1b16f Release note for #3035 2016-11-03 16:58:54 +00:00
Matt Westcott
7d3dcc0add Remove SelectorFormat scss-lint rule that has so many arbitrary exclusions that there's no point in it existing 2016-11-03 16:58:53 +00:00
Matt Westcott
378516855f fix table cell CSS so that the 'choose another page' button displays in full 2016-11-03 16:58:51 +00:00
Matt Westcott
1b2cb50a84 Add documentation for bulk delete permission 2016-11-03 16:58:50 +00:00
Matt Westcott
bc9ebe46d2 Add release note detailing how to restore bulk delete permission to existing groups 2016-11-03 16:58:49 +00:00
Matt Westcott
0070da62db add bulk_delete permission type 2016-11-03 16:58:48 +00:00
Matt Westcott
5c9fc29fbe Mention that deleting a published page requires publish permission 2016-11-03 16:10:11 +00:00
Matt Westcott
e681cb3626 Add documentation about permission configuration 2016-11-03 16:10:09 +00:00
Matt Westcott
bfa9a953fc Rewrite page delete permission rules so that publish permission doesn't automatically grant deletion
The old permission logic allowed anyone with publish permission to delete pages, with no further checks applied. This is incorrect, because the permission rules applied elsewhere establish that 1) deletion is equivalent to editing, and 2) publish permission DOES NOT imply edit permission.
2016-11-03 16:10:08 +00:00
Gary Krige
9038da9fcd Don't repeat set_url_path logic 2016-11-01 17:09:45 +00:00
Tim Heap
1849e9edf7 Only show imminent DeprecationWarnings by default
Otherwise the PendingDeprecationWarnings for the next version of Django
become very noisy. The PendingDeprecationWarnings are generally ignored
because of the large range of Django versions supported, so printing
them by default causes nothing but noise. This causes actual warnings to
be ignored.
2016-11-01 16:53:52 +00:00
Tim Heap
c0289801d7 Catch and assert warnings in wagtailembeds
Otherwise they appear as noise in the test log
2016-11-01 16:53:51 +00:00
Tim Heap
65296c018d Fix a use of assertEqual 2016-11-01 16:53:51 +00:00
Matt Westcott
c9137d1dc0 Update release note and credits for #3071 2016-11-01 14:05:05 +00:00
Matt Westcott
b4954c1fdf 'Ready to develop' label is defunct - suggest 'difficulty:Easy' instead 2016-10-27 21:02:00 +01:00
Matt Westcott
7545ed3675 We don't have t-shirts any more :-( 2016-10-27 20:55:19 +01:00
Ducky
7922f1abeb restructured and added to contribution guide
As a new contributor I found some of the information for contributing hard to
find easily. I think this restructure should fix that, by bringing relevant
menus under their headings and adding an additional heading for 'more
information' instead of just 'other contributions'.
2016-10-27 20:50:28 +01:00
Ducky
76ffc972a5 fixes issue where closing the 'MORE' action scrolls to the top of page.
fixes #3076
2016-10-27 20:47:16 +01:00
Tim Heap
14af9858e9 Use a timezone that does not use DST in tests
I was getting a failure in the scheduled publishing tests, as in 10 days
time exactly the America/Chicago timezone goes through a DST transition,
which renders a time submitted in a form to be invalid.

Debugging this was fun.
2016-10-27 20:33:55 +01:00
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