Commit graph

3335 commits

Author SHA1 Message Date
Tim Heap
9aae3a1a23 Restrict child page types when creating them
The list of allowed child page types was restricted, but if you could
guess the URL to create a disallowed page type, nothing would stop you
creating it. Fixes a failing test case.
2014-09-10 15:17:12 +10:00
Tim Heap
4bcacfabf2 Add tests for new Page.parent_page_types setting 2014-09-10 15:17:12 +10:00
Tim Heap
42e175392e Implement Page.parent_page_types
Similar to `Page.subpage_types`, but restricts which pages can have a
specific page type as a child.

Useful for Blog posts being restricted to Blog list pages, or similar
things.
2014-09-10 15:17:12 +10:00
Dave Cranwell
6d05fd79fe Added get_verbose_name 2014-09-09 16:46:44 +01:00
Dave Cranwell
03745d01cb added docstring to get_verbose_name, which is a particularly handy method for front enders 2014-09-09 16:47:35 +01:00
Dave Cranwell
6d5747b6da moved version into title tag on logo 2014-09-09 15:22:30 +01:00
Matt Westcott
743717a46c Add unit test to verify that URL methods on non-routable pages return None 2014-09-09 14:24:49 +01:00
Karl Hobley
97959b8f4d Changed version to 0.5 2014-09-09 13:01:31 +01:00
Karl Hobley
74686ccbee Added wagtail version indicator to the dashboard 2014-09-09 13:00:56 +01:00
Karl Hobley
bce455a5cc Made setup.py look at wagtailcore.__version__ 2014-09-09 12:57:01 +01:00
Karl Hobley
1d7ca5a685 Made docs look at wagtailcore.__version__ 2014-09-09 12:56:26 +01:00
Karl Hobley
69f9f48488 Added __version__ to wagtailcore 2014-09-09 12:56:10 +01:00
Karl Hobley
f9e8039b6a Removed an accidentally committed change (was used for testing) 2014-09-09 10:16:41 +01:00
Karl Hobley
b1299427d8 Added missing comment 2014-09-09 10:14:14 +01:00
Karl Hobley
046bd84f53 Don't process -c parameter on non fill filters 2014-09-09 10:11:53 +01:00
Karl Hobley
b02d8db666 Fixed stray print statement 2014-09-09 10:04:49 +01:00
Karl Hobley
e2fb040981 Implemented crop closeness 2014-09-09 09:52:52 +01:00
Karl Hobley
3264d92db3 Fixed merge issue 2014-09-09 09:12:50 +01:00
Karl Hobley
f24a9240d3 Tests for focal point chooser view 2014-09-08 14:47:41 +01:00
Karl Hobley
8f87a5ff81 Don't allow users without permission to edit the image to see its focal point chooser 2014-09-08 14:47:21 +01:00
Karl Hobley
afec066013 Imports cleanup 2014-09-08 14:36:37 +01:00
Karl Hobley
b4c7b3fbc2 Made 'done' link a button 2014-09-08 11:34:31 +01:00
Karl Hobley
807aa1ebb1 Started work on manual image cropping 2014-09-08 10:59:23 +01:00
Karl Hobley
82d60e514e Changelog and contributers files updates 2014-09-08 09:20:25 +01:00
Karl Hobley
77b52b0a13 Merge pull request #603 from thenewguy/nosouth
do not import south for dj17
2014-09-08 09:05:16 +01:00
gordon
9f96f676fd do not import south for dj17 2014-09-06 18:03:22 -04:00
Matt Westcott
27bc0e5c9f Merge branch 'master' into kaedroho-project-template 2014-09-05 16:26:13 +01:00
Karl Hobley
ecd8d22c04 Merge pull request #599 from gasman/fix/child_relations
Fix page copy and replace_text to pick up child relations that are defined on a superclass
2014-09-05 12:49:57 +01:00
Matt Westcott
ecd8657523 add dj1.7 migration for adding 'colour' to AdvertPlacement test model 2014-09-05 12:37:58 +01:00
Matt Westcott
663218c458 fix tests I broke by fiddling with the AdvertPlacement test model 2014-09-05 12:17:26 +01:00
Karl Hobley
47fca3fac6 Improved consisntancy of spacing in 0.6 release notes 2014-09-05 11:47:00 +01:00
Matt Westcott
e94f610241 changelog entry for child_relations bugfixes 2014-09-05 11:46:49 +01:00
Matt Westcott
626526fe8c Fix replace_text to catch child relations that are defined on a superclass 2014-09-05 11:38:40 +01:00
Karl Hobley
35035d7339 Added note to 0.6 saying that all features deprecated in 0.4 have been removed 2014-09-05 11:33:19 +01:00
Karl Hobley
fb23878ccb Changelog and release notes for #535 2014-09-05 11:29:20 +01:00
Karl Hobley
dbd0834624 Merge pull request #535 from gasman/feature/menu-api
Refactor admin menu API to allow menu items to have bundled JS
2014-09-05 11:28:43 +01:00
Matt Westcott
609b22f722 Fix Page.copy() to copy child objects that are defined on a superclass of the model 2014-09-05 11:25:04 +01:00
Matt Westcott
339aff8026 Test the register_admin_menu_item hook, including the use of classnames/attrs and is_shown 2014-09-05 10:26:14 +01:00
Matt Westcott
9319667a23 Merge branch 'master' of github.com:torchbox/wagtail 2014-09-04 21:33:08 +01:00
Matt Westcott
2e20faa094 upgrade modelcluster to 0.4 - fixes #545 2014-09-04 21:32:39 +01:00
Matt Westcott
db41badd8c add tests for accessing advert_placements on a subclass of Page - these require modelcluster 0.4 to pass 2014-09-04 16:04:59 +01:00
Dave Cranwell
36d5d747aa Detail about image renditions and abstractimage fields 2014-09-04 11:01:24 +01:00
Karl Hobley
73d29b99c0 Fixes to RoutablePageMixin examples 2014-09-04 09:20:53 +01:00
Karl Hobley
a314285a1d Changed versionadded for RoutablePageMixin to 0.6 2014-09-04 09:18:13 +01:00
Dave Cranwell
8f91e0061f duplicate label 2014-09-02 13:21:32 +01:00
Dave Cranwell
196bb4ba89 styling for users without lock perms 2014-09-02 13:16:57 +01:00
Dave Cranwell
a7f2163f7c styling of edit lock 2014-09-02 13:12:00 +01:00
Dave Cranwell
75b8cc0483 Merge branch 'master' into pull_576 2014-09-02 12:37:16 +01:00
Karl Hobley
d67242bf7d Fixed unicode encoding issues on Python 2 2014-09-01 16:51:39 +01:00
Dave Cranwell
95d249918b Update creating_pages.rst 2014-09-01 16:39:48 +01:00