Wykres commitów

30 Commity (14919f3b41da8d089c870975bcd0364af6176d59)

Autor SHA1 Wiadomość Data
Vincent Audebert 14919f3b41 Possibility to delete a user #2371
As mentioned in the comments I didn't see the first pull request (https://github.com/torchbox/wagtail/pull/2509)
However, I think my changes were a tiny bit more complete in terms of UI/UX. I allow to delete a user directly from the user list + you can delete any user if you are superuser, except yourself. This way we are sure to keep at least one superuser but we can still delete superusers.
I added some tests from this PR to my code and also added the permission denied on the delete page.
2016-07-06 17:05:17 +01:00
Mikalai Radchuk b79069b247 Release notes for #2786 2016-07-06 17:44:57 +03:00
Matt Westcott dbc4c9b28e Adds the include_block template tag (#2786)
Update render and render_basic methods on Block to take a context kwarg

Update TableBlock to support passing extra context to render

Implement render_as_block on BoundBlock, StreamValue and StructValue.

Collectively, these are the objects encountered during template rendering which typically render
a block template when output inside {{ ... }} tags. Implementing render_as_block allows us to do
the same thing, but passing a template context as well.

Implement include_block tag

Support extra context vars on include_block via 'with foo=bar'

Support 'only' flag on include_block tag, to omit the parent context

Update StreamField documentation to cover the include_block tag

Rewrite 'BoundBlocks and values' docs based on the include_block tag

Add tests for blocks with legacy render / render_basic methods

Any bits of StreamField infrastructure that attempt to call render or render_basic
on a block with a 'context' kwarg, should (for now) also work on blocks that don't
accept the context kwarg, but output a RemovedInWagtail18Warning.

Explicitly test whether render / render_basic will accept a 'context' kwarg

This avoids unexpected behaviour when the method legitimately accepts a context
kwarg, but happens to throw an unrelated TypeError - in this situation, the final
output (or error diagnostics) will behave as if the context was never passed,
making debugging difficult. See https://github.com/torchbox/wagtail/pull/2786#discussion_r69563984
2016-07-06 17:44:02 +03:00
Serafeim Papastefanos 16953c79f3 Allow multiple, comma seperated email addresses...
to be used in the `to_address field` in the `AbstractEmailForm`.
2016-07-05 13:02:57 +01:00
Matt Westcott 9961455c6a Add formal support for customising the form rendering of StructBlocks
The `form_template` attribute was mentioned in passing in the docs, but was missing various things
to make it fully useful:

- context passed to form_template now includes 'prefix' and 'block_definition'
- context for the form is now populated in a separate overrideable `get_form_context` method
- full documentation and tests for form_template and get_form_context added
2016-07-05 11:48:09 +01:00
Janneke Janssen 9f72e12159 Inherit relevant border-radius from the parent 2016-07-04 21:34:12 +01:00
Josh Schneier 1dad100695 Add a check that the declared search_fields exist 2016-07-04 20:58:30 +01:00
Matt Westcott bdbc1b0c5b Release note for Django 1.10 compatibility 2016-06-28 16:34:46 +01:00
Matt Westcott ac5f57f1ce Release note for #2737 2016-06-23 11:07:42 +01:00
Chris Rogers daf68f5e2e Added Wagtail version to settings menu 2016-06-23 11:05:51 +01:00
kakulukia 334bebc55c dont enforce HTML templates :( 2016-06-22 16:09:51 +01:00
Mike Dingjan 33f53a6e78 Added __bool__ method for proper evaluating the RichText object value 2016-06-21 12:04:52 +01:00
Oktay Altay 31ce2e802c Add new EmailBlock and IntegerBlock 2016-06-17 23:39:49 +01:00
Karl Hobley 35e506c47f Changelog/release note for #2715 2016-06-17 15:51:39 +01:00
Michael van Tellingen 7d7509aee5 Implement initial version of Block.bulk_to_python (with jaroel)
This prevents n+ queries for n blocks of a specific type.
2016-06-17 15:08:14 +02:00
Matt Westcott 367c71dbaa TagSearchable needs to be removed from migrations 2016-06-17 09:45:28 +01:00
Gagaro 4d7bdfd160 Refactor: remove Filter as a Django model. 2016-06-17 02:21:36 +02:00
Ludolf Takens e995bc0e19 Fix #2533: Prevent removal of '/' when redirect from url is just '/' (#2721) 2016-06-16 11:48:45 +01:00
Matt Westcott 852a6de301 fix formatting on release notes page 2016-06-15 18:15:21 +01:00
Johannes Spielmann a2ec49e01a allow wagtailforms field choices to be as long as they want 2016-06-15 18:14:41 +01:00
Matt Westcott 8121b633a4 Fix incorrect CSS path on ModelAdmin's 'choose a parent page' view - fixes #2703 2016-06-15 13:50:45 +01:00
Moritz Pfeiffer 6c9d202057 Removed cell content aligment options from table editor context menu. 2016-06-13 20:59:10 +01:00
Matt Westcott f6706977bd Validate against duplicate form field names - fixes #585
Thanks to @tacitus for this fix (#2445).
2016-06-13 19:53:44 +01:00
Matt Westcott bdaf696cd2 Release note / docs for #2257 2016-06-10 14:26:30 +01:00
Mikalai Radchuk ba807e5f45 Release notes for #2677 2016-06-08 16:53:01 +03:00
Mikalai Radchuk ba220d58ca Release notes for #2691 2016-06-08 15:24:18 +03:00
Mikalai Radchuk b66830ce27 Release notes for #2684 2016-06-08 13:36:27 +03:00
Behzad Nategh b1f194a637 Unicode support for slug as of Django 1.9 2016-06-01 13:44:01 +01:00
Jack P 78168ba824 Perform client side validation on image upload form, so that the selected file is not lost in the submission - fixes #92 2016-05-26 17:11:27 +01:00
Matt Westcott c55eed9e99 Version bump to start work on 1.6 2016-05-23 16:36:10 +01:00