Wykres commitów

5915 Commity (ef4aa3b54e35fd24ddf6e834031e89948fc8ac5c)

Autor SHA1 Wiadomość Data
shredding c6b2cef575 implemented filter chaining 2015-12-17 12:12:24 +00:00
Karl Hobley 7fee62f8eb Make "Hello" part of notification emails use user's username if we don't know their real name 2015-12-17 11:28:38 +00:00
Matt Westcott eccb0990bb Add test for user_passes_test decorator 2015-12-17 09:13:03 +00:00
Matt Westcott 63cd666fd4 Refactor permission_required/any_permission_required to allow substituting other kinds of permission test 2015-12-17 09:13:03 +00:00
Eugene MechanisM 039db5ed89 "Signing in..." for translation 2015-12-17 01:50:03 +00:00
Karl Hobley c3e62d1cb7 Changelog/release note for #2026 2015-12-16 16:29:15 +00:00
Matt Westcott 635659a80f Make searching and tag filtering mutually exclusive at the view level
We can't guarantee that search backends are able to search on a queryset
that has been filtered by a relation such as tags (see #459). The JS code
currently avoids applying a tag filter and a search query at the same
time; this change makes that behaviour explicit at the view level too.
2015-12-16 16:24:55 +00:00
Matt Westcott a913fbe283 Decouple 'popular tags' filtering on image chooser from search
Searching by tag only works under Elasticsearch, so clicking on 'popular tags' is broken
in the default install. As a workaround, add a new 'tag' parameter to the chooser view
that allows us to filter on tags using plain SQL lookup, as a separate operation to search.
2015-12-16 16:24:55 +00:00
Karl Hobley ac2a6cac23 Changelog/release note for #2041 2015-12-16 16:18:50 +00:00
Matt Westcott 53fb42f275 Throw warning on missing CSS rather than error, so that tests can still run on Dj1.7 2015-12-16 16:18:50 +00:00
Matt Westcott beb8f8bc4e Add system check to confirm that compiled CSS files are present.
Fixes #1720. Thanks to Shu Ishida for initial development on this feature.
2015-12-16 16:18:50 +00:00
Tim Heap 44564ea76a Link to homepage from dashboard page link if single site
If the Wagtail install has only one site, link to the homepage of that
site from the dashboard page summary instead of the root page of the
hierarchy.

Hopefully this will prevent some of the confusion causing people to
create pages under the root page, where they are inaccessible. See #1612
for more information around this issue.

Wagtail installs with multiple (or zero) sites retain the old behaviour
of linking to the root page.
2015-12-16 14:53:56 +00:00
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