Commit graph

2713 commits

Author SHA1 Message Date
Dave Cranwell
c0c6a1bd7c started adding pre-upload validation to images 2014-10-26 11:50:14 +00:00
Karl Hobley
4a6a09ec13 Check image file size before the format
Checking the file format may take a long time if the uploaded file is
very big so it makes sense to check the file size first to prevent the
server being held up unneccessarily.
2014-10-26 11:50:14 +00:00
Karl Hobley
ffec059c12 Refactored image validation into a custom field
This fixes issues with Django closing the image file before running
validators.
This may give a slight improvement in upload speed as the file doesn't
keep having to be reopened.
This unifies our image validation with Django's image validation so
error messages could be shared (not implemented yet though).
The code is more maintainable (the validators no longer need to be
called manually from the multiple image uploader for example)
2014-10-26 11:50:14 +00:00
Dave Cranwell
50f8aed9c3 tweak to validator message. passing through max size vars 2014-10-26 11:50:14 +00:00
Karl Hobley
5999e96505 Fixed display of hidden fields on image add view
Same as #668 but for the old image add view
2014-10-26 11:50:14 +00:00
Karl Hobley
948c11bbd2 Added max_filesize to all image uploader views 2014-10-26 11:50:14 +00:00
Karl Hobley
b7b5e182fa Added image filesize validation 2014-10-26 11:50:14 +00:00
Karl Hobley
7cf31a4386 Merge pull request #751 from kaedroho/images-tests-reorg-2
Reorganised images tests
2014-10-26 11:49:15 +00:00
Karl Hobley
9165351343 Reorganised images tests 2014-10-26 11:37:00 +00:00
Matt Westcott
793ebd4cc2 Release note for #743 2014-10-24 16:42:38 +01:00
Matt Westcott
24ca59465e Merge pull request #743 from kaedroho/template-dependency-fix
Project template: Fixed migration dependency
2014-10-24 16:29:08 +01:00
Matt Westcott
b57fab3cca Merge pull request #720 from kaedroho/use-lastest_revision_created_at-in-sitemap-generator
Use latest_revision_created_at in sitemap generator
2014-10-24 15:33:40 +01:00
Matt Westcott
92d0dd9895 Release note for #748 2014-10-24 10:58:54 +01:00
Matt Westcott
23393eaf90 Merge pull request #748 from kaedroho/fix-revisions-copying-on-child-pages
Fix revisions still copying for child pages
2014-10-24 10:53:53 +01:00
Matt Westcott
e7be80af50 release note for #732 2014-10-24 10:52:03 +01:00
Matt Westcott
548b10a82a Merge pull request #732 from kaedroho/copy-revisions-created-at-bug
Don't overwrite created_at of copied page revisions
2014-10-24 10:42:48 +01:00
Karl Hobley
3503981802 Fix revisions still copying for child pages
When Page.copy runs recursively, it forgot to pass through the
copy_revisions value that the user specified causing revisions to always
be copied for subpages regardless of what the user wanted
2014-10-24 10:32:20 +01:00
Karl Hobley
13e8e73830 Project template: Fixed migration dependency
The project template currently crashes on first migrate because it tries
to run the create homepage migration before the Page.locked field is
created.

This commit fixes (and hopefully, future proofs) this by telling Django
that the core app migrations depend on the latest wagtailcore migration,
which should make Django fully migrate wagtailcore before starting the
core app.
2014-10-23 20:06:26 +01:00
Matt Westcott
1871a29f30 release note for #569 2014-10-23 17:31:54 +01:00
Matt Westcott
04f93e2bbf Merge branch 'kaedroho-logging' 2014-10-23 17:18:45 +01:00
Matt Westcott
1d54ebaabf Merge branch 'logging' of https://github.com/kaedroho/wagtail into kaedroho-logging 2014-10-23 17:10:36 +01:00
Matt Westcott
3f95387ba9 Merge branch 'nimasmi-login_page_tabindex' 2014-10-23 16:09:43 +01:00
Matt Westcott
9b3048a141 Merge branch 'login_page_tabindex' of https://github.com/nimasmi/wagtail into nimasmi-login_page_tabindex 2014-10-23 16:08:13 +01:00
Karl Hobley
3de6cb5ff4 Use new_url_path in page move log 2014-10-23 16:08:08 +01:00
Matt Westcott
f8f3fbd17e Merge branch 'logging' of https://github.com/kaedroho/wagtail into kaedroho-logging 2014-10-23 15:14:51 +01:00
Karl Hobley
df7110625a Added logging for moderation approval/rejection 2014-10-23 14:57:07 +01:00
Karl Hobley
4027262433 Log page deletions 2014-10-23 14:57:07 +01:00
Karl Hobley
568ba42c95 Added logging for most page operations 2014-10-23 14:56:15 +01:00
Matt Westcott
2bf8e44707 release note for #463 2014-10-23 12:57:04 +01:00
Matt Westcott
8bb1a8a459 Merge branch 'takeflight-bug/url-check' 2014-10-23 12:40:38 +01:00
Matt Westcott
4b466ae041 Merge branch 'bug/url-check' of https://github.com/takeflight/wagtail into takeflight-bug/url-check 2014-10-23 11:32:51 +01:00
Karl Hobley
bdcef9e05f Merge pull request #736 from jsma/py3-fix
`unicode()` doesn't exist in PY3, changed to `str()`
2014-10-23 09:46:35 +01:00
John-Scott Atlakson
ad687c500f Switched usage of str() to six.text_type()
Removed unused import
2014-10-23 04:18:01 -04:00
John-Scott Atlakson
0edb1244a1 unicode() doesn't exist in PY3, changed to str() 2014-10-23 03:18:14 -04:00
Karl Hobley
d633cbfd6c Added @edrex to contributors 2014-10-22 22:11:22 +01:00
Karl Hobley
cc2af2f4e2 Merge pull request #734 from edrex/patch-1
docs: fix code sample indentation
2014-10-22 22:10:05 +01:00
Karl Hobley
e43b3e25d5 Release note for #721 2014-10-22 22:08:40 +01:00
Karl Hobley
23c9589156 Changelog for #721 2014-10-22 22:07:59 +01:00
Karl Hobley
cff196699e Merge pull request #721 from jsma/patch-1
Fixed JSON Oembed error on Python 3
2014-10-22 22:06:20 +01:00
Eric Drechsel
b89f6ce00c fix code sample indentation 2014-10-22 11:25:18 -07:00
Karl Hobley
bbc8985968 Added Django 1.7 migration 2014-10-22 16:34:14 +01:00
Karl Hobley
c6462b8d38 created_at of PageRevisions is now copied on page copy 2014-10-22 16:25:20 +01:00
Karl Hobley
6e7a360cfe Added failing test 2014-10-22 16:17:57 +01:00
Karl Hobley
de6ff8b944 Wagtail 0.8 is in development 2014-10-22 10:58:11 +01:00
Karl Hobley
96ec356937 Auto register signals only works on Django 1.7 2014-10-22 10:56:50 +01:00
Karl Hobley
aa47a89e6d Added 0.8 release notes to index 2014-10-22 10:55:12 +01:00
John-Scott Atlakson
ab7f3da7af Fixed failing oembed tests 2014-10-20 21:03:39 -04:00
John-Scott Atlakson
50663e47db Fixed JSON Oembed error on Python 3
=> TypeError: the JSON object must be str, not 'bytes'
2014-10-19 20:47:20 -04:00
Karl Hobley
7659bf23d3 Use latest_revision_created_at in sitemap gen
Much faster than looking it up manually for every page in the site
2014-10-17 17:16:36 +01:00
Karl Hobley
dc1b51a5be Merge pull request #700 from kaedroho/remove-features-08
Removed 'wagtailsearch.indexed' module and updated deprecation warnings
2014-10-17 16:55:08 +01:00