0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

1641 Commits

Author SHA1 Message Date
pyMan
7d1114c1a1 Extra ES params passed through new OPTIONS key
Closes #2778

Extra ES params are now passed through new OPTIONS key in the
WAGTAILSEARCH_BACKENDS setting.

It's backward compatible: if no OPTIONS key is found and some parameters
still exist, those parameters are used for the ES constructor..
2016-12-01 12:04:14 +00:00
Matt Westcott
11676408c9 remove Fix: prefix 2016-11-30 18:46:22 +00:00
Chris Rogers
89e985d02a added convenience method in_site and tests 2016-11-30 18:45:14 +00:00
Edd Baldry
cb268c233a Disable editing when page lock turned on 2016-11-30 17:16:47 +00:00
Matt Westcott
6fda0dc01f Release note for #3139 2016-11-30 17:00:30 +00:00
Matt Westcott
3fd5bb1820 Add image gallery / InlinePanel section to tutorial 2016-11-30 16:38:20 +00:00
Matt Westcott
5df8f1e34e Release note for #3145 2016-11-30 16:35:21 +00:00
Karl Hobley
18316d627d Added Elasticsearch 5 to search backend docs 2016-11-30 16:31:20 +00:00
Diederik van der Boor
f960753d74 Add the alters_data attribute on Page.copy().
This makes sure the variable can't be printed in the template,
performing an accidental copy of the page. That also happened when using
the `{% print %}` tag from my django-debugtools package
2016-11-29 11:39:37 +00:00
Scot Hacker
2882775842 Add BlockQuoteBlock to core block types 2016-11-29 10:13:10 +00:00
Morgan Aubert
4e23e46159 Fix #3167 - Ensure TableBlock content is indexed
Changes include:
* adding the 'get_searchable_content' method on the TableBlock
* ... and the related test
2016-11-28 20:40:47 +00:00
Matt Westcott
3d37f84311 Release note for #2812 2016-11-28 17:45:17 +00:00
Mikalai Radchuk
55bdae573b Add support of callable choices for ChoiceBlock
Fixes #2809
2016-11-28 17:44:35 +00:00
Matt Westcott
02360e6651 re-indent template performance code snippet 2016-11-28 13:45:42 +00:00
Tim Heap
16213db0f8 Remove old versionadded notes
A step has been added to the release process notes to do this for future
releases as well.

https://github.com/torchbox/wagtail/wiki/Creating-a-new-Wagtail-release
2016-11-28 13:41:35 +00:00
Tim Heap
6ba34636cb Fix whitespace errors in docs
Trimmed trailing whitespace, convert tabs to 4 spaces, add preference
for spaces to `.editorconfig`.
2016-11-28 13:41:35 +00:00
Tim Heap
254e675634 Use .. code-block:: console for all shell commands
This is the correct lexer for interactive console sessions, according to
<http://pygments.org/docs/lexers/>. This does require command lines to
be prefixed with `$`, otherwise they are interpreted as the output of a
command. It highlights the command nicely, including environment
variables, strings, and comments.
2016-11-28 13:41:35 +00:00
Tim Heap
f742d4a476 Use .. code-block:: for all python, html blocks 2016-11-28 13:41:34 +00:00
Tim Heap
2f8a43cd66 Document new blocks in login template
The old `branding.rst` docs were combined with the new docs on
customising the login page in a new `admin_templates.rst` document.
2016-11-28 12:41:06 +00:00
Diederik van der Boor
d21171c1b0 Fix errors by settings context processor in out-of-request templates
When templates are rendered outside the request cycle,
the `settings` context processor fails because `request.site` is not
created because `SiteMiddleware` was not processed.

This happens whenever requests are mocked for rendering.
For example email rendering by third party packages or unittests
that mock a request object without taking all middleware into account.
2016-11-24 12:14:58 +00:00
Andy Babic
23eced1fcd `Added support for 'exclude_from_explorer' attribute on ModelAdmin class 2016-11-23 16:51:08 +00:00
Morgan Aubert
51b4f0f53d Fix #3134
Changes include:
* fixing the FieldError exception that can occur as described in #3134
* add tests for the "search_garbage_collect" command
2016-11-17 14:34:56 +00:00
Albert O'Connor
a5b544631b Update the Cloudflare backend to use the v4 API
Fixes #3146
2016-11-17 12:01:57 +00:00
Manuel E. Gutierrez
5a26e22c0f Improve TranslatedField example
Avoid allocating two variables when only need one.
2016-11-15 10:39:55 +00:00
Benoit Vogel
2fba07ad8e Implemented StaticBlock
Uses admin_text which is a Meta attribute.
* StaticBlock code in wagtailcore/blocks + tests
* StaticBlock in Streamfield docs
2016-11-15 10:29:06 +00:00
Thejaswi Puthraya
6821c763ea Refs #2717. Custom forms for modeladmin. 2016-11-11 15:30:44 +00:00
Matt Westcott
98b4a6dccd remove as-yet-unused tutorial screenshots for categories 2016-11-09 15:47:55 +00:00
Matt Westcott
011f2099eb Remove categories section, add better example of MultiFieldPanel, minor copyediting 2016-11-09 14:35:58 +00:00
Scot Hacker
756d5ec0dd Move slugurl example/explanation
- Also misc cleanup
2016-11-09 10:42:47 +00:00
Scot Hacker
3634c2b289 Add a Categories system to Getting Started tutorial 2016-11-09 10:42:46 +00:00
Scot Hacker
8c5b62ccfc Intro tutorial additions and improvements
- Addresses all issues raised in PR review
- Adds more info to "Navigating parents/children"
- Adds a new dedicated section on overriding context
2016-11-09 10:42:45 +00:00
Scot Hacker
32f97ff43a Update Getting Started tutorial to include posts automatically, plus tagging
- Resolves #3096
2016-11-09 10:42:44 +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
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
Matt Westcott
8de1b1b16f Release note for #3035 2016-11-03 16:58:54 +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
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
c9137d1dc0 Update release note and credits for #3071 2016-11-01 14:05:05 +00: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
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
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
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
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
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
2ce6ec8046 Mark 1.7 as no longer in development
Conflicts:
	CHANGELOG.txt
2016-10-20 10:25:18 +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
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
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
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
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
6c57b5b280 Docs for format and jpegquality image filters
This also fixes #1205
2016-10-05 15:54:05 +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
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
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
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
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
869349f86c Release note for #3017 2016-09-30 10:06:44 +01:00
Andy Babic
0c1b67bc16 Add documentation to help with customisation of contrib.modeladmin 2016-09-28 20:52:19 +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
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
Nick Smith
504759d267 #1446 add pagination to wagtailadmin.views.pages.move_choose_destination 2016-09-22 11:53:38 +01:00
Karl Hobley
ebe597610e API v2 docs (#2940) 2016-09-22 11:15:18 +01:00
Mikalai Radchuk
ae33f7192d Adds "Supported versions of Django"
Adds "Supported versions of Django" section
into "Wagtail's release process" document.
2016-09-21 18:50:44 +01:00
Mikalai Radchuk
d3568df5b3 Adds docs about release process 2016-09-21 18:50:21 +01:00
Karl Hobley
9d655a9f8a Changelog/release note for #2975 2016-09-21 13:33:13 +01:00
Stein Strindhaug
ffa21943d0 Increase legibility by increasing contrast
Raise contrast by slightly adjusting font-weight, color and font size (from 12.2px to 12.8px in the menu)
2016-09-21 12:02:23 +01:00
Matt Westcott
8dc1d9c342 Document the steps for creating a filter_spec migration for a custom image model 2016-09-20 15:38:36 +01:00