Wykres commitów

5753 Commity (985a987436cff2fe0d8fac2621043a401889f1f6)

Autor SHA1 Wiadomość Data
Matt Westcott c1c77e4e70 Update can_move_to logic to respect allowed_subpage_types business rules 2015-12-03 12:56:51 +00:00
Matt Westcott 3e127ebe03 add new fixtures to test subpage_types business rules when moving pages 2015-12-03 12:56:51 +00:00
Dave Cranwell 72892644bb Merge pull request #1979 from tomdyson/nodding-bird
Make the bird nod on hover
2015-12-03 11:09:31 +00:00
Tom Dyson 8de12cdd41 Transition back, with a tiny bounce 2015-12-03 10:35:34 +00:00
Dave Cranwell eb4c5a7ce2 nav-submenu required translate3d due to its fixed position in the presence of animation, apparently. Also animation vendor prefixing removed since autoprefixer handles this already 2015-12-02 17:39:26 +00:00
Dave Cranwell eaeb589ebb removed prefixed box-sizing 2015-12-02 14:55:06 +00:00
Dave Cranwell 97456de746 linted 2015-12-02 14:55:06 +00:00
Dave Cranwell 7bc1c2485a mixins which only do prefixing removed in favour of depending more on autoprefixer 2015-12-02 14:55:06 +00:00
Matt Westcott e671a83be5 Release note for #1978 2015-12-01 13:17:31 +00:00
Matt Westcott f6d8bb3978 Enforce is_creatable rules in the page 'create' view 2015-12-01 12:35:31 +00:00
Matt Westcott b1c75644f6 Stop replace_text from replacing multiple times on MTI subclasses.
Iterating over get_page_models means that these will be visited once
per superclass. To avoid this, we filter the page list to those exactly
matching the page class. This is done via a new `exact_type` method
on `PageQuerySet`.
2015-12-01 12:35:31 +00:00
Matt Westcott 1bb74ee4d0 Remove special case allowing all page types to be children of Page.
This was required when Page was absent from PAGE_MODEL_CLASSES (due to
it being 'abstract' / non-creatable) and thus never appeared in a
parent_page_types list. Now it appears in PAGE_MODEL_CLASSES, and is
a valid parent page type for page types that do not specify
parent_page_types (or explicitly include Page in the list).
2015-12-01 12:35:30 +00:00
Matt Westcott 5104643438 Change PAGE_MODEL_CLASSES to include is_creatable pages 2015-12-01 12:35:30 +00:00
Matt Westcott 11d7e35423 Merge pull request #1983 from kaedroho/drone-images
Added Drone Dockerfiles to /scripts
2015-12-01 11:01:40 +00:00
Karl Hobley e8d022b398 Added Drone Dockerfiles to /scripts 2015-12-01 10:56:23 +00:00
Matt Westcott 60ea0427fb Formally deprecate ContentType-returning methods in wagtailcore 2015-12-01 10:22:48 +00:00
Matt Westcott 9f1993ad10 Eliminate remaining uses of allowed_subpage_types 2015-12-01 10:22:48 +00:00
Matt Westcott 5e84900adb Add tests for allowed_parent_page_models and allowed_subpage_models.
We don't want to only test these indirectly via allowed_*_types, because
allowed_*_models is the preferred interface.
2015-12-01 10:22:48 +00:00
Matt Westcott 4ce93ac381 Deduplicate code for converting a list of models to a list of ContentTypes 2015-12-01 10:22:48 +00:00
Matt Westcott b572edbd9e Remove _PAGE_CONTENT_TYPES cache.
No code within Wagtail uses get_page_types now, and it doesn't really matter if external code becomes infinitessimally slower...
2015-12-01 10:22:48 +00:00
Matt Westcott e12523820d Add an allowed_subpage_models method to supersede allowed_subpage_types 2015-12-01 10:22:48 +00:00
Matt Westcott d182115d2a Add an allowed_parent_page_models method to supersede allowed_parent_page_types 2015-12-01 10:22:48 +00:00
Matt Westcott 54ad787131 Add a clean_parent_page_models method to supersede clean_parent_page_types 2015-12-01 10:22:48 +00:00
Matt Westcott 71f970f9aa Add a clean_subpage_models method to supersede clean_subpage_types 2015-12-01 10:22:48 +00:00
Matt Westcott 7b35f3ec6d use get_page_models instead of get_page_types in wagtailforms 2015-12-01 10:22:47 +00:00
Matt Westcott 9a0c4225b5 Use get_page_models instead of get_page_types in replace_text command 2015-12-01 10:22:47 +00:00
Matt Westcott 06897db7c5 Add a get_page_models function to wagtailcore.models; deprecate direct use of PAGE_MODEL_CLASSES 2015-12-01 10:22:47 +00:00
Matt Westcott c35ae95d9b Document the remaining PageQuerySet methods 2015-11-30 22:16:08 +00:00
Tom Dyson 95d9a27c7b Merge pull request #1977 from tomdyson/master
Document setting for case-insensitive tags
2015-11-30 21:27:43 +00:00
Tom Dyson dca1cf6b43 Make the bird nod on hover 2015-11-30 18:13:26 +00:00
Tom Dyson ef58ea3429 Document setting for case-insensitive tags 2015-11-30 18:07:08 +00:00
Tim Heap 1d4a276f49 Use SiteManager for Sites, add tests
The SiteManager class was not used on the Site model, or anywhere else.

This was not caught by the tests, because nothing tested the relevant
attributes on the Site model, nor were they used in the code base. Tests
have been added now.
2015-11-30 14:35:25 +00:00
Karl Hobley 06cba807df Merge pull request #1914 from kaedroho/runtests-args
Add --postgres and --elasticsearch arguments to runtests.py
2015-11-30 12:26:16 +00:00
Matt Westcott e5abe8df96 Release note for #1969 2015-11-27 16:15:21 +00:00
Matt Westcott 4758c89a3c Add keyboard shortcuts for preview and save 2015-11-27 16:12:00 +00:00
Dave Cranwell 7845cb409b Merge pull request #1965 from davecranwell/fix-nav-toggle-size
Nav toggle icon had somehow lost specificity over time
2015-11-27 10:46:23 +00:00
Dave Cranwell 7333ae520f nav toggle had somehow lost specificity over time, causing it to appear tiny. 2015-11-27 10:34:25 +00:00
alx 88e477098f Ensure that locked pages can't be unpublished.
Fixes #1615
2015-11-24 12:58:02 +00:00
Tim Heap f4968de0f9 Allow overriding attributes in {% image %} tag
The `alt` attribute that was automatically generated as part of the
`{% image %}` tag could not be overridden. If template authors passed
their own `alt="..."` attribute in, two would be printed out instead
of the default one being overridden.

The relevant code has been refactored to build a dict of attributes,
allowing the default set to be overridden, and then printing them using
`flatatt`.

Fixes #1933
2015-11-24 11:38:10 +00:00
Rich Brennan ce57281f6a Move content_panels inside FormPage definition. 2015-11-24 10:36:30 +00:00
Rich Brennan 010838b53e Add Orderable to list of imported wagtailcore models 2015-11-24 10:36:02 +00:00
Rich Brennan fab4e2224f Move content_panels inside BookPage definition. 2015-11-24 10:36:02 +00:00
Dave Cranwell 29753ecb0d updated css guidelines. removed duplicate linting block 2015-11-24 00:05:31 +00:00
Dave Cranwell dc7b9a90a1 linting upstream changes inherited from rebased onto master 2015-11-23 22:11:01 +00:00
Dave Cranwell 5d43512c38 fixing rebase confusion 2015-11-23 21:39:56 +00:00
Dave Cranwell 7e40b131e8 finished linting 2015-11-23 21:39:56 +00:00
Dave Cranwell 9b14b4bbb3 tweaked scss linting rules making them admittedly less stringent, but striking a better balance with realism 2015-11-23 21:39:55 +00:00
Dave Cranwell e7993c4354 fixed SingleLinePerSelector 2015-11-23 21:39:55 +00:00
Dave Cranwell 04f760bd08 space indenting 2015-11-23 21:39:55 +00:00
Dave Cranwell fc980bd103 updated npm packages. ongoing linting of scss files 2015-11-23 21:39:54 +00:00