Matt Westcott
64357dc5e0
Merge branch 'master' into form-builder
...
Conflicts:
wagtail/tests/fixtures/test.json
wagtail/wagtailcore/tests.py
2014-05-09 09:57:40 +01:00
Dave Cranwell
280d960829
fixing save button on page creation
2014-05-08 12:10:06 +01:00
Dave Cranwell
6acb81dc78
Merge branch 'feature/pagemodes'
2014-05-08 11:56:46 +01:00
Dave Cranwell
96b6845e72
updated drop-ups for new preview button. improved icon rendering on windows generally.
2014-05-08 11:52:39 +01:00
Matt Westcott
541c4b37ff
use url_info.hostname rather than url_info.netloc when building dummy request headers - netloc includes port number for non-standard ports, which we don't want
2014-05-08 10:55:47 +01:00
Dave Cranwell
532309d9eb
Merge remote-tracking branch 'upstream/feature/pagemodes' into feature/pagemodes
2014-05-08 09:39:28 +01:00
Matt Westcott
9b93d7edd8
Add unit tests for wagtailforms backend
2014-05-07 17:33:13 +01:00
Matt Westcott
f68f9a0461
add tests for front-end form submission
2014-05-07 16:39:56 +01:00
Matt Westcott
738fa90e19
enforce permission restrictions on retrieving form submissions
2014-05-06 17:34:31 +01:00
Matt Westcott
d89f8711a7
add editable_pages method to UserPagePermissionsProxy
2014-05-06 16:55:49 +01:00
Matt Westcott
b56c726733
add migration for wagtailforms
2014-05-06 16:28:42 +01:00
Matt Westcott
dd087d0820
Remove ConcreteForm models from wagtailforms
2014-05-06 15:02:44 +01:00
Matt Westcott
82aa2ea4c5
Make to_address optional (so that the page author can decide whether or not to make use of the email functionality, without needing two versions of the template)
2014-05-06 14:44:41 +01:00
Matt Westcott
2f67c986eb
Give fields their own columns in the form data view
2014-05-06 12:45:24 +01:00
Matt Westcott
08f6713d96
Don't capture logged-in user in form submissions (not clear how useful it will be, and creates possible privacy issues where submissions are intended to be anonymous)
2014-05-06 12:31:56 +01:00
Matt Westcott
424f48b644
Refactor CSV output to display data columns in original order
2014-05-02 17:03:37 +01:00
Matt Westcott
af475d7566
Fix AbstractFormField to not lose the sort_order ordering
2014-05-02 16:23:36 +01:00
Matt Westcott
d344dc39a1
Cleanup of pagination_nav.html, including explaining what the url_to_use hack is really doing
2014-05-02 15:33:47 +01:00
Matt Westcott
aa0cb313e3
Handle form submissions from non-authenticated users correctly
2014-05-02 14:16:16 +01:00
Karl Hobley
13d546e835
Merge pull request #226 from kaedroho/embeds_author-and-provider-fields
...
Add author_name and provider_name to Embed
2014-05-02 13:58:54 +01:00
Karl Hobley
ebd063ad15
Merge pull request #227 from kaedroho/issue/7-and-157
...
Clear 'wagtail_site_root_paths' when a site root page is saved fixes #7 #157
2014-05-02 13:50:34 +01:00
Karl Hobley
012a78b0de
Added changelog entry
2014-05-02 13:49:44 +01:00
Matt Westcott
529f14e221
Remove redundant content-type parameters from form builder admin URLs
2014-05-02 13:42:32 +01:00
Karl Hobley
c50532a5fc
Added docstrings to issue 7 and 157 testcases
2014-05-02 13:30:09 +01:00
Matt Westcott
83c309d09e
FormSubmission does not need a generic foreign key - just link back to Page
2014-05-02 13:28:56 +01:00
Matt Westcott
523f7911ca
Display form fields in email as one per line rather than comma-separated
2014-05-02 13:11:10 +01:00
Karl Hobley
d6cce69a39
Clear 'wagtail_site_root_paths' when a site root page is saved fixes #7 fixes #157
2014-05-02 13:10:55 +01:00
Karl Hobley
913f21d09b
Test for issue 7 now fails consistantly
2014-05-02 13:02:25 +01:00
Karl Hobley
d24fe52d53
Added test for issue 157
2014-05-02 13:00:14 +01:00
Karl Hobley
226b760dc3
Merge branch 'master' into issue/7-and-157
2014-05-02 12:34:51 +01:00
Karl Hobley
20a69ff1a9
Merge pull request #225 from kaedroho/db-cache
...
Use database cache for testing
2014-05-02 12:33:45 +01:00
Karl Hobley
503f1cbaf8
Added comment into runtests.py to explain why we're using DatabaseCache
2014-05-02 12:33:20 +01:00
Karl Hobley
17aa3fc89e
Cleanup wagtailembeds
...
Use templates for rendering embeds
Fixed issue with invalid javascript being returned by the chooser
2014-05-02 12:15:27 +01:00
Karl Hobley
7fe6e2177a
Added changelog entry
2014-05-02 12:02:57 +01:00
Karl Hobley
a27bc5f237
Display embed author/provider in admin if set
2014-05-02 12:01:40 +01:00
Karl Hobley
db5559b688
Embeds: Save author_name and provider_name if set
2014-05-02 11:54:20 +01:00
Karl Hobley
a771e6adc4
Added author_name and provider_name fields to Embed model
2014-05-02 11:51:41 +01:00
Karl Hobley
360174e230
Use database cache for testing
...
Currently, the cache is not flushed between tests.
This can cause false positives where a previous test has been messing with cache keys which a future test uses (eg, wagtail_root_paths)
This commit makes django use the database as the cache which is automatically flushed between tests
2014-05-02 11:45:31 +01:00
Karl Hobley
e681e3aeee
Fixed an issue with issue 7 unit test
2014-05-02 11:13:18 +01:00
Karl Hobley
2463152d4c
Created unit test to reproduce issue 7
2014-05-02 10:44:35 +01:00
Matt Westcott
cfcc67f514
Wrap the output of the richtext filter in a 'rich-text' div - fixes #224
2014-05-02 10:01:55 +01:00
Matt Westcott
ec99bfed84
add changelog entry for richtext change
2014-05-02 10:00:14 +01:00
Matt Westcott
5c94facfb3
AbstractFormFields / ConcreteFormFields should be renamed *FormField
2014-05-01 17:08:38 +01:00
Matt Westcott
e431b6d084
Add get_page_modes / show_as_mode methods to AbstractForm, to allow previewing both the form and the landing page
2014-05-01 16:22:44 +01:00
Matt Westcott
ef9e877fa9
remove mysql from tox tests for now, until we can fix the foreign key constraint error in wagtail.wagtailimages.tests.TestImageEditView
2014-05-01 14:48:51 +01:00
Matt Westcott
ba339a0bfb
Add @kryton's fix for MySQL support in _update_descendant_url_paths, from #215
2014-05-01 13:06:20 +01:00
Matt Westcott
419b671fcc
Use @transaction.atomic rather than the deprecated (as of Django 1.6) commit_on_success
2014-05-01 12:57:18 +01:00
Matt Westcott
178a235d2d
Add unit test for moving pages
2014-05-01 12:56:31 +01:00
Matt Westcott
16ca3ce280
Add MySQL to tox tests
2014-05-01 12:21:17 +01:00
Matt Westcott
afe2fc10a8
add David Smith to contributors
2014-05-01 11:21:45 +01:00