Karl Hobley
6cd293f081
Cleanup E124 errors
2015-12-04 09:42:22 +00:00
Karl Hobley
1f81b934f6
Cleanup some E303 errors
...
There are others but I'd argue the extra spacing improves readability in some situations.
2015-12-04 09:38:43 +00:00
Karl Hobley
1957af9ea8
Cleanup E302 errors
2015-12-04 09:32:16 +00:00
Karl Hobley
113f8e59ff
Cleanup E261 errors
2015-12-04 09:20:22 +00:00
Matt Westcott
8a22c977a2
Release note for #1970
2015-12-03 19:43:31 +00:00
Lukasz Kozlowski
7a681f94f7
Update tags widget in Image and Douments forms.
...
AdminTagWidget provides initTagField function
that fixes issue with multiple-word tags.
2015-12-03 19:39:30 +00:00
Lukasz Kozlowski
f0df1cb1fe
Make initTagField accessible in every admin view.
2015-12-03 19:39:30 +00:00
Rich Brennan
11618f0c3d
Update content_panels and promote_panels.
...
If I'm right, the Echoer content_panels and promote_panels can be removed as they're defined on Page?
2015-12-03 18:55:01 +00:00
Jan Korte
56cfe02bae
snippet docs: loading the tags is necessary
2015-12-03 18:45:29 +00:00
Matt Westcott
ad7596a96d
Limit animation to the .wagtail-logo class so that custom logos don't nod
2015-12-03 18:43:33 +00:00
Matt Westcott
9f3ae3c51d
Release note for #1572
2015-12-03 13:19:44 +00:00
Tim Heap
0071d85aa0
Add Page methods `can_move_to` and `can_create_at`
...
These two tests are used when checking if a new page type can be created
under a page instance, or if an existing page type can move under a page
instance.
2015-12-03 12:56:52 +00:00
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