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

5539 Commits

Author SHA1 Message Date
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
Karl Hobley
7b46e233f4 Added Django 1.7 support 2015-12-11 12:29:27 +00:00
Karl Hobley
eed5c60d72 Docs for index.RelatedFields 2015-12-11 12:29:27 +00:00
Karl Hobley
3bce07f26f Test ForeignKey with RelatedFields 2015-12-11 12:29:27 +00:00
Karl Hobley
2b7eb9c3c4 Use select/prefetch related when indexing RelatedFields 2015-12-11 12:29:26 +00:00
Karl Hobley
ca83c43e3c Added support for indexing relations in wagtailsearch 2015-12-11 12:29:26 +00:00
Matthew Downey
e18f877286 send individual notification emails per user 2015-12-11 11:02:48 +00:00
c16192
4433d4f3c0 pep8 fixes
Conflicts:
	wagtail/wagtailforms/models.py
	wagtail/wagtailimages/models.py
	wagtail/wagtailredirects/models.py
	wagtail/wagtailsnippets/edit_handlers.py
	wagtail/wagtailsnippets/tests.py
	wagtail/wagtailsnippets/views/snippets.py
	wagtail/wagtailsnippets/wagtail_hooks.py
	wagtail/wagtailusers/migrations/0001_initial.py
	wagtail/wagtailusers/migrations/0002_add_verbose_name_on_userprofile.py
	wagtail/wagtailusers/tests.py
	wagtail/wagtailusers/views/users.py
	wagtail/wagtailusers/wagtail_hooks.py
2015-12-09 14:21:48 +00:00
Matt Westcott
0ce27f2f3d Release note for #1816 2015-12-09 11:40:36 +00:00
Tim Heap
8ddd9ee537 Call django.setup() before making docs
Django 1.9 requires this line before importing any models. Autodoc
imported models to get their docstrings, causing errors in the build
process.

Fixes #2014.
2015-12-09 11:40:35 +00:00
Matt Westcott
abe4eb6f28 tests(Django 1.9): Add test for stripping whitespace from title / seo_title 2015-12-09 11:40:35 +00:00
Matt Westcott
65f97bba6f docs(django 1.9): Add upgrade consideration note for Jinja2 template tag location change 2015-12-09 11:40:35 +00:00
Matt Westcott
b5dc2696c4 feat(django1.9): Upgrade to django-taggit 0.17.5 (required for Django 1.9 compatibility) 2015-12-09 11:40:35 +00:00
Matt Westcott
fdfffd2d87 feat(django1.9): Declare Django 1.9 support in setup.py 2015-12-09 11:40:35 +00:00
Karl Hobley
b382f89b55 feat(django 1.9): Test on django-modelcluster 1.1 beta 1 2015-12-09 11:40:35 +00:00