Wykres commitów

3734 Commity (6d77676191baa093c3d4786c31364519e2904499)

Autor SHA1 Wiadomość Data
Karl Hobley 5aa6ed2c2a Docs for running the tests
Fixes #1004
2015-03-18 20:53:33 +00:00
Karl Hobley 23ee87243b Added Pillow to dev requirements 2015-03-18 19:13:20 +00:00
Karl Hobley 55ce9f761e Added *.swp and /venv to gitignore
.swp files are made automatically by vim and are easy to accidentally commit
/venv is a very common place to put a virtual environment which we wouldn't want to be committed
2015-03-18 19:06:15 +00:00
Karl Hobley bff488d8fb Removed .drone.yml 2015-03-18 19:05:31 +00:00
Karl Hobley a447e53ba7 Run tests with SQLite by default
SQLite doesn't require any initial setup and is significantly faster than PostgreSQL

Also removed USER/PASSWORD/HOST vars. Postgres users can pass in PGUSER, PGPASSWORD and PGHOST environment variables instead
2015-03-18 19:03:43 +00:00
Matt Westcott 2b57c8c43f test for 838affa 2015-03-18 17:30:55 +00:00
Matt Westcott 838affad84 Use AdminAutoHeightTextInput on plain TextFields - fixes #1041 2015-03-18 17:19:58 +00:00
Matt Westcott 61511a01c9 Merge branch 'davecranwell-expanding-textblock' 2015-03-18 12:04:45 +00:00
Matt Westcott 9c1c1ca0d5 Merge branch 'expanding-textblock' of https://github.com/davecranwell/wagtail into davecranwell-expanding-textblock 2015-03-18 11:46:51 +00:00
Matt Westcott bd28d9288a Increase the maximum length of a page slug from 50 to 255 characters - fixes #787 2015-03-18 10:49:46 +00:00
Karl Hobley ed9aad1418 Move login url settings release note up one space 2015-03-18 10:12:39 +00:00
Karl Hobley 58f89d2a91 Admin menu => Left hand menu 2015-03-18 10:08:48 +00:00
Karl Hobley 62f755054a Add some more detail to a 0.9 release note
Fixes #1065
2015-03-18 10:08:01 +00:00
Matt Westcott 406cc10796 Merge branch 'kaedroho-page-published-date' 2015-03-17 16:26:57 +00:00
Matt Westcott 846b309593 Release note for #1054 2015-03-17 16:26:43 +00:00
Matt Westcott 651dd4d9f3 Merge branch 'page-published-date' of https://github.com/kaedroho/wagtail into kaedroho-page-published-date 2015-03-17 15:56:39 +00:00
Matt Westcott 3abfa63046 Specify 1.7.1 as the minimum supported Django version 2015-03-17 14:49:29 +00:00
Karl Hobley 24e633e8e7 Test republishing a page wont set first_published 2015-03-17 13:51:17 +00:00
Karl Hobley 6f916a611b Make sure first_published_at is using live copy
When publishing, the first_published at gets set on the live copy, not in the revision.

This caused it to be set again on next publish because it is reading from the revision.
2015-03-17 11:49:42 +00:00
Karl Hobley af7c1de978 Removed page modes tests
These views were already being tested in TestFormSubmission. I don't think anyone will ever call the modes directly making these tests a bit pointless.

They also use the assertTemplateUsed method badly (these should be used on a response).
2015-03-16 11:58:34 +00:00
Karl Hobley 8d9e72de09 Pass fields attribute to inlineformset_factory 2015-03-15 20:14:20 +00:00
Karl Hobley 00e5138885 Some tests for first_published_at 2015-03-12 13:55:06 +00:00
Karl Hobley 0bbd8edf68 Set first_published_at on first publish 2015-03-12 13:54:23 +00:00
Karl Hobley cdbae1f575 Added first_published_at field to Page 2015-03-12 10:57:54 +00:00
Matt Westcott 80cb6e16e7 prepare for 0.8.6 release
Conflicts:
	CHANGELOG.txt
	wagtail/project_template/requirements.txt
	wagtail/wagtailcore/__init__.py
2015-03-10 17:32:14 +00:00
Matt Westcott a3b39fa901 upgrade consideration note for #1044 2015-03-10 17:26:24 +00:00
Karl Hobley 4f7edeed1f Changelog/release note for #1037 2015-03-10 13:07:03 +00:00
Karl Hobley 7cf60b676d Merge pull request #1037 from gasman/fix/recursive-page-deletion-2
Ensure that deletions always happen on the base Page model, to work around treebeard bug
2015-03-10 13:03:37 +00:00
Karl Hobley 38b7afc8ed Changelog/release note for #1044 2015-03-10 12:07:16 +00:00
Karl Hobley 9300179159 Merge pull request #1044 from gasman/fix/fixorphanedpages-task
Update 'fixtree' task to support deleting orphaned pages
2015-03-10 12:04:15 +00:00
Karl Hobley 4357e36391 Tests for #1044 2015-03-10 10:12:31 +00:00
Karl Hobley 87703c95fd Tweaked fixtree command to make it more testable
We can now pass thorough a "delete_orphans" option from the test which simulates a user pressing "y" at the prompt
2015-03-10 10:10:56 +00:00
Karl Hobley 80b3665dfd Use functools.reduce instead of reduce
reduce() no longer exists in python 3
2015-03-10 09:44:35 +00:00
Karl Hobley 71305f0774 Merge pull request #1046 from gasman/push-translations
Generate new translation source files
2015-03-09 10:24:13 +00:00
Matt Westcott 22cb8c6b98 use self.stdout.write instead of print 2015-03-09 10:18:17 +00:00
Matt Westcott 36fe2bea3a When initialising a ListBlock's default, use the child's default explicitly because None doesn't work 2015-03-06 17:07:21 +00:00
Matt Westcott 920ce81182 make StreamField more robust in the face of unexpected nulls 2015-03-06 15:55:41 +00:00
Dave Cranwell 7a17f1b5eb stream menus should be open if no stream children exist 2015-03-06 15:23:46 +00:00
Matt Westcott 3efad3089d release note for #1045 2015-03-06 13:57:45 +00:00
Matt Westcott f0747918bc regenerate translation messages 2015-03-06 12:21:17 +00:00
Matt Westcott 6a982674a6 Merge pull request #1045 from gasman/update-translations
Pull new translations from Transifex
2015-03-06 12:20:15 +00:00
Matt Westcott 1ce0b9fe68 Update translator credits (as best we can from the transifex data) 2015-03-06 11:56:49 +00:00
Matt Westcott 8123f31a2c Compile new translations (django-admin compilemessages) 2015-03-06 11:15:04 +00:00
Matt Westcott 2548e49ef5 fetch new translations (tx pull -a) 2015-03-06 11:08:37 +00:00
Matt Westcott 390718b63b Update 'fixtree' task to support deleting orphaned pages 2015-03-05 20:15:54 +00:00
Matt Westcott b2372c8787 Discard invalid StreamField data rather than throwing ValueError 2015-03-05 10:36:58 +00:00
Matt Westcott 774924ce40 Perform page deletion on the base Page class, not page.specific
This avoids a treebeard bug where calling SpecificPage.delete() would fail to delete child pages that are not instances of SpecificPage.

This partially reverts #737, and adds logic at the model level to ensure that any other calls to SpecificPage.delete() get diverted to Page.delete() instead. Re the rationale given in #737, reverting this is legitimate (and does not cause any meaningful regression) because:
1) Django always fires pre/post delete signals from both Page and SpecificPage regardless of which one is deleted;
2) Overriding delete() can never reliably work whatever we do; even if we consistently call SpecificPage.delete() within wagtail, we can't get treebeard to do that for child pages because treebeard has no knowledge of how to obtain a SpecificPage instance.
2015-03-04 16:16:06 +00:00
Matt Westcott 2df05ec000 test that pre/post delete signals are fired on the classes we're interested in 2015-03-04 15:51:00 +00:00
Matt Westcott 61852c1f43 Add treebeard sanity checks in tests for wagtailadmin operations that modify the tree 2015-03-04 14:01:07 +00:00
Matt Westcott 544623cd35 add extra page deletion tests, including a failing one for subpages 2015-03-04 13:43:36 +00:00