Wykres commitów

5753 Commity (985a987436cff2fe0d8fac2621043a401889f1f6)

Autor SHA1 Wiadomość Data
shredding 2dd3f42e25 catch errors on non existing images 2015-12-16 13:14:11 +00:00
Denis Voskvitsov ab45915a90 Set `request.is_preview` flag to show whether page is served as preview 2015-12-16 11:28:53 +00:00
Karl Hobley 1f78af1ac8 Merge pull request #2043 from gasman/feature/project-template-dj19
Update project template to Django 1.9
2015-12-16 10:09:38 +00:00
Matt Westcott db8b8a4cbf Update project template to Django 1.9
* bump version in requirements.txt
* convert 'search' entry in urlconf to import by module rather than string
* change tuples in settings to lists
2015-12-16 10:02:31 +00:00
Karl Hobley 9d3e068b0c Use Django 1.8 TEMPLATES setting in settings doc
Also, the ``request`` context processor is now in the defaults
2015-12-16 09:29:17 +00:00
Matt Westcott a6c2100362 add changelog item for #2030 2015-12-16 09:21:31 +00:00
Matt Westcott d6715f80a1 Revert fix for Hallo toolbar button hover state from #1746 - fixes #2040 2015-12-16 09:19:51 +00:00
Jannis 42e1317a4e Add missing blocktrans to InlinePanel's add-button 2015-12-15 20:24:53 +00:00
Rich Atkinson aaed92f301 do not delete uploaded images or page revisions when a user is deleted. fixes #1918 2015-12-15 17:06:37 +00:00
Karl Hobley f436bc5c09 Changelog/release note/contributor for #1906 and #1998 2015-12-15 16:30:36 +00:00
Brian dee427713e patch for reverse lazy url in wagtailadmin menu 2015-12-15 16:28:38 +00:00
Karl Hobley c01a0952a2 Changelog/release note for #1864 2015-12-15 16:00:18 +00:00
Denis Voskvitsov 0a9f2cfadd Change locale source 2015-12-15 16:00:18 +00:00
Denis Voskvitsov 11be1db174 Add editor name to moderation notification 2015-12-15 16:00:18 +00:00
Matt Westcott 086997c14a add missing backticks 2015-12-15 15:59:57 +00:00
Matt Westcott e3269463d3 typo: 'attriutes' -> 'attributes' 2015-12-15 15:58:33 +00:00
Matt Westcott 0fe3572566 Release note for #1796 2015-12-15 15:57:24 +00:00
Tim Heap 2c76441186 Add docs for WagtailPageTests 2015-12-15 15:49:40 +00:00
Tim Heap 36cb270885 Add assertions for subpage, parent page types to test helper
Two new assertions have been added: `assertAllowedSubpageTypes` and
`assertAllowedParentPageTypes`. They both take a Page class, and a set
of Page classes, and compares the allowed subpage / parent page models
for the Page class to the set passed in.
2015-12-15 15:49:39 +00:00
Tim Heap 6947eab55b Add test helpers for Wagtail sites
`wagtail.tests.utils.WagtailPageTests` is a new `TestCase` subclass that
helps developers write tests for their Wagtail sites. It currently
includes three assert methods:

`assertCanCreateAt(parent_model, child_model)`, which asserts that a
child page of a certain type could be created underneath a parent page.
This is useful for making assertions around the business rules of your
site.

`assertCanNotCreateAt(parent_model, child_model)` is the inverse of the
above.

`assertCanCreate(parent, child_model, data)` asserts that a child page
can be added underneath the given parent page, by POSTing `data` at the
correct page in the Wagtail admin. This checks that the developer has
correctly configured their `content_panels` and related options.

These methods are just a start, and could be expanded further. More
methods could be added, asserting that Snippets can be created, for
example. The current methods could be extended further, to validate more
about the Wagtail admin page editor.
2015-12-15 15:48:36 +00:00
Karl Hobley d160ea3ccf Release note for #2036 (and #2025) 2015-12-15 15:06:49 +00:00
Karl Hobley 31720b3261 Removed a couple of unused tag includes 2015-12-15 15:03:41 +00:00
Karl Hobley c05e115087 Added comment explaining the purpose of results_image.html 2015-12-15 15:02:43 +00:00
Maris Serzans 43ac882e5d Separated out html code for displaying an image in another file 2015-12-15 14:46:50 +00:00
Matt Westcott 9e5ba4bd3e Add system check to validate parent_page_types / subpage_types - fixes #1128 2015-12-15 14:32:39 +00:00
kylestratis 876cd1c7ea Removed references to search picks 2015-12-15 12:58:24 +00:00
shredding 6422c7f618 added success message after image update 2015-12-15 00:21:34 +00:00
Matt Westcott c65b155f2f Release note for #1814 2015-12-15 00:03:06 +00:00
Timo Rieber a6644b72e3 Added site_name to index template 2015-12-15 00:00:11 +00:00
Timo Rieber 3fa1c35aaf Added site_name to form 2015-12-15 00:00:11 +00:00
Timo Rieber df5433258e Added site_name to model 2015-12-15 00:00:11 +00:00
Tim Heap 9e8c2c2d5f Allow custom Page Managers
Previously, if a developer wanted to use a custom Manager on their Page
subclass, some fairly hacky hacks were required. Now, the `objects`
attribute is only overridden if it is a plain `Manager`. If it is
anything else, it is left alone. A system check has been added to ensure
that all `Page` managers inherit from `PageManager`
2015-12-14 23:09:45 +00:00
Matt Westcott da4f091466 Release note for #1800 2015-12-14 21:21:46 +00:00
Ben Kerle 3ef94d60a2 Documentation for admin search area hook 2015-12-14 21:21:45 +00:00
Ben Kerle 973c290e77 Basic tests for admin search hook 2015-12-14 21:21:45 +00:00
Ben Kerle d478f96ef6 Result templates updated with "search other" tags 2015-12-14 21:21:44 +00:00
Ben Kerle 7b088df886 Hooks for existing "Other Searches" options
Largely cloned from existing menu hooks
2015-12-14 21:21:44 +00:00
Ben Kerle 759bb84451 Admin "search other" template tags 2015-12-14 21:21:44 +00:00
Ben Kerle c0033e63b5 Hook classes for search area options
Borrowed from menu hooks
2015-12-14 21:21:43 +00:00
cornelius 40478e395a Namespace the admin search urls 2015-12-14 09:23:59 +00:00
Matt Westcott 84d7666e5c Unpin html5lib version 2015-12-11 13:27:57 +00:00
Karl Hobley b4bbb7bcb1 Specify app_name in url includes that have namespace 2015-12-11 12:51:57 +00:00
Karl Hobley d37d54e62e Rename _get_val_from_obj to value_from_object
value_from_object has been in Django for a long time. _get_val_from_obj is deprecated
2015-12-11 12:51:57 +00:00
Matt Westcott 8a17aeb5a8 Use the block rendering as the string representation of BoundBlock, not just StreamChild.
There's no reason not to (the default `<wagtail.wagtailcore.blocks.base.BoundBlock object at 0xb5b1348c>` representation is pretty useless), and doing it this way makes the explanation of BoundBlock much easier - we don't have to explain the render() method or single out children of StreamBlock as a special case that doesn't need it.
2015-12-11 12:48:52 +00:00
Matt Westcott 9e124cb9b6 Remove use of value.bound_blocks from basic StructBlock template example.
This hasn't been necessary since #1360 was merged, and the new 'BoundBlocks and values' section covers it much better.
2015-12-11 12:48:37 +00:00
Matt Westcott 0e34282646 Add section about BoundBlocks and values 2015-12-11 12:48:37 +00:00
Matt Westcott 2c765a7462 Release note for #1491 2015-12-11 12:46:01 +00:00
Karl Hobley 5982ed3905 Tests for select_on_queryset 2015-12-11 12:29:27 +00:00
Karl Hobley 37da3a559d Docstring for select_on_queryset 2015-12-11 12:29:27 +00:00
Karl Hobley 308521833b Automatically prefetch/select related on reverse relations while indexing
Django 1.8 only as it's too tricky to implement for Django 1.7. Django 1.7 users will still be able to index reverse relations, just indexing speed may be much slower.
2015-12-11 12:29:27 +00:00