Commit graph

4044 commits

Author SHA1 Message Date
Karl Hobley
d94cde879c Allow search backends to be imported by module
This allows the elasticsearch backend to be imported like "wagtail.wagtailsearch.backends.elasticsearch" (dropping .ElasticSearch from the end of the import string)
2015-05-07 14:11:56 +01:00
Karl Hobley
bbdb4379a0 Sendfiles mod_wsgi backend broken on Django 1.8 2015-05-07 11:36:46 +01:00
Karl Hobley
10fb0c4249 Changelog/release notes/contributors for #1176 2015-05-07 10:12:31 +01:00
Karl Hobley
40092e1852 Must use simple sendfile when using staticsitegen 2015-05-07 09:54:28 +01:00
Karl Hobley
c8d7f5baad Merge branch 'jordij/feature/docs-sendfile' 2015-05-07 09:36:11 +01:00
Karl Hobley
8673d07d8b Updated sendfile to 0.3.7 2015-05-07 09:35:31 +01:00
jordij
5db78ec012 PEP-8 fixes 2015-05-07 09:33:11 +01:00
Karl Hobley
f70eb09d07 Added streaming sendfile backend
The simple sendfile backend doesn't stream responses. This commit adds a backend that does.
2015-05-07 09:33:11 +01:00
Karl Hobley
b3348534cc Fallback to simple sendfile backend
If SENDFILE_BACKEND is not set
2015-05-07 09:33:11 +01:00
Karl Hobley
6e0a448f11 Import sendfile into wagtail utils 2015-05-07 09:33:10 +01:00
Karl Hobley
b1062a712e Added tests for a few sendfile backends
So we can test sendfile against our test matrix
2015-05-07 09:33:10 +01:00
jordij
e33ff5d34d documents served using django-sendfile 2015-05-07 09:33:05 +01:00
Dan Braghis
e7e0ddcedd Release/Changelog notes for #1263/#1269 2015-05-06 17:19:57 +01:00
Dave Cranwell
edce85e56a Merge pull request #1263 from salvadormrf/patch-1
Show upload tab when there is form error when adding a new document.
2015-05-06 16:12:38 +01:00
Dave Cranwell
a261d97058 Merge pull request #1269 from salvadormrf/patch-2
Keep collapsible blocks open if there is any form error.
2015-05-06 16:12:34 +01:00
Karl Hobley
1011b3ba39 Merge pull request #1270 from kaedroho/fix-forms-unicodeencodeerror
Fix UnicodeEncodeError on Python 2. And some cleanup of wagtailforms tests
2015-05-06 15:25:36 +01:00
Matt Westcott
52bc8ae627 Merge pull request #1217 from kaedroho/page-validation-changes
Cleaned up page validation
2015-05-06 10:22:23 +01:00
Karl Hobley
4186bee2be Fix UnicodeEncodeError on Python 2 2015-05-05 14:11:29 +01:00
Karl Hobley
a1bf1159c4 Make form page in wagtailforms tests 2015-05-05 13:52:35 +01:00
Karl Hobley
52ab03ee93 Cleaned up page validation
Previously, we added an extra validation rule to the slug field by overriding the clean_slug method on the page, which was a little hacky I think.

This PR removes this code and uses form.add_error instead (added in Django 1.7) for performing the extra validation rules.
2015-05-05 11:38:02 +01:00
Karl Hobley
0ca1eb310a Add test for too long slug 2015-05-05 11:36:58 +01:00
Salvador Faria
f19623b401 Keep collapsible blocks open if there is any form error.
By default the collapsible blocks will be hidden after saving or from preview.
When there is a form error inside one of these blocks, the block is hidden and the user does not know where the form errors are located.
2015-05-04 22:00:32 -04:00
Salvador Faria
c3d4b47530 Show upload tab when there is form error when adding a new document. 2015-05-04 10:52:57 -04:00
Karl Hobley
0fb4880acf 0.8.8 is in development 2015-05-04 15:15:32 +01:00
Karl Hobley
b3030ac6b0 Changelog/release note/contributor for #1260 2015-05-03 11:26:12 +01:00
Karl Hobley
8f642a5b2f Removed a bit of unused code 2015-05-03 11:19:45 +01:00
Arne Schauf
61584ae2f8 fix TypeError if submitting unchecked BooleanField 2015-05-03 11:11:12 +01:00
Karl Hobley
cc07406f3d Failing test for #1260 2015-05-03 11:09:02 +01:00
Karl Hobley
3bc798a450 Typo fix in search backends tests 2015-05-01 11:10:42 +01:00
Matt Westcott
7936e8c01d Skip TestServeWithUnicodeFilename if filesystem doesn't support unicode filenames 2015-04-30 11:42:43 +01:00
Matt Westcott
733f2c3ef6 Merge pull request #1133 from kaedroho/issue-746
Set has_unpublished_changes in Page.save_revision
2015-04-29 17:14:23 +01:00
Matt Westcott
ad3a3d6c54 Finalise 0.8.7 in documentation
Conflicts:
	CHANGELOG.txt
2015-04-29 14:08:32 +01:00
Matt Westcott
ea22d3d2f9 release note for #1244 2015-04-28 19:06:32 +01:00
Matt Westcott
00d2fd16ac Merge branch 'fix/unicode-doc-filename' 2015-04-28 17:43:04 +01:00
Matt Westcott
dcdbd7ea36 Fall back on ASCII filename if setting Content-Disposition fails - fixes #1166 2015-04-28 13:02:30 +01:00
Dave Cranwell
5da7a31bc2 Merge pull request #1237 from JoshBarr/feature/javascript-airbnb
Conform JavaScript to Airbnb StyleGuide
2015-04-28 12:37:32 +01:00
Matt Westcott
d0abaa77fe support Django 1.8 in setup.py 2015-04-27 15:25:05 +01:00
Matt Westcott
e243cf2403 remove note that was meaningful when the rich text tag library was called rich_text, but isn't any more 2015-04-27 15:23:47 +01:00
Matt Westcott
9ebd6979ae CAN HAZ DJANGO 1.8 2015-04-27 15:21:56 +01:00
Matt Westcott
9f9c991364 Merge branch 'kaedroho-new-routable-page' 2015-04-27 14:51:49 +01:00
Matt Westcott
d3a16b8d27 Release note for #1161 2015-04-27 14:51:33 +01:00
Matt Westcott
6668a5fa69 revert typo fix which wasn't 2015-04-27 14:22:15 +01:00
Matt Westcott
d385e1fd4b TestPageModel needs to be both is_abstract = True and Meta.abstract = True 2015-04-27 14:22:15 +01:00
Karl Hobley
1401df9457 Fix typo
It's friday afternoon...
2015-04-27 14:22:15 +01:00
Karl Hobley
69e65a4ab8 Check that using subpage_urls raises deprecation 2015-04-27 14:22:15 +01:00
Karl Hobley
122c524a1c Hide subpage_urls deprecation warning in tests 2015-04-27 14:22:15 +01:00
Karl Hobley
4b4b4bcc74 Skip old style tests on Django 1.8 and above 2015-04-27 14:22:15 +01:00
Karl Hobley
1384129d89 Added deprecation warning for old style 2015-04-27 14:22:15 +01:00
Karl Hobley
7200def791 Added @route decorator 2015-04-27 14:22:15 +01:00
Matt Westcott
f7b2cfbb4e Move release note for #1236 from 1.0 to 0.8.7 2015-04-27 14:22:01 +01:00