Thibaud Colas
1abb917ab8
Fix URL under package version badge ( #2806 )
...
crate.io has been shut down and the domain repurposed/sold. See https://www.reddit.com/r/Python/comments/1wcp93/what_happened_to_crateio/
2016-06-30 19:12:02 +01:00
Mikalai Radchuk
520d34f6d8
Add Tim Graham to the contributors list
2016-06-29 13:02:09 +03:00
Matt Westcott
03d8e738de
Disallow CI failures on Django 1.10
...
Also prune a few Django 1.8 test environments, as a first step to phasing out Dj1.8 support
2016-06-28 16:44:20 +01:00
Matt Westcott
bdbc1b0c5b
Release note for Django 1.10 compatibility
2016-06-28 16:34:46 +01:00
Paul J Stevens
daf7dee0d4
update django requirement
2016-06-28 16:26:00 +01:00
Matt Westcott
5758b54f2e
Support `error_messages` dict as argument to RegexBlock
...
The individual `error_message` kwarg on RegexField is deprecated in Django 1.8
(and removed in Django 1.10), so it's appropriate for RegexBlock to follow the
same convention.
2016-06-28 16:11:52 +01:00
Paul J Stevens
ef05d37686
replace removed private API in favor of public API
2016-06-28 14:45:20 +01:00
Matt Westcott
810952cfc8
Add test for linked_objects being output when deletion is disallowed
...
Required as a prerequisite for making this code Django-1.10 compatible,
as per https://github.com/torchbox/wagtail/issues/2723#issuecomment-227241446
2016-06-28 14:43:26 +01:00
Paul J Stevens
865841eedf
update test to handle django-1.10 change in FileField storage
2016-06-28 12:22:43 +01:00
Matt Westcott
3e38bab785
fix typo in Raphael Stolt's name
2016-06-27 18:27:46 +01:00
Matt Westcott
bf912b2aa9
Add Raphael Stolz to contributors
2016-06-27 17:37:22 +01:00
Raphael Stolt
843088bc9b
Use snippets translation ( #2785 )
2016-06-27 17:36:38 +01:00
Matt Westcott
64c7a6367a
Document isort and 'make lint' in Python coding guidelines
2016-06-23 16:31:44 +01:00
Matt Westcott
b85c340163
Move flake8 config to setup.cfg
2016-06-23 16:31:44 +01:00
Matt Westcott
f2ec21b947
Run isort as part of 'make lint'
2016-06-23 16:31:44 +01:00
Paul J Stevens
ee9f105810
Test for RegexURLPattern.callback on Django 1.10
...
Thanks Paul J Stevens for the initial patch, Tim Graham for review
and Matt Westcott for tweak of initial patch
2016-06-23 17:29:27 +03:00
Matt Westcott
ac5f57f1ce
Release note for #2737
2016-06-23 11:07:42 +01:00
Chris Rogers
daf68f5e2e
Added Wagtail version to settings menu
2016-06-23 11:05:51 +01:00
Robert Rollins
4244cc0dfa
Fixes for a few typos and formatting issues in the Explorer's table headers. ( #2764 )
...
The bugfix here is the removal of the redundant </th> tags at the top. I noticed
these while writing the Page explorability PR.
The formatting issue was the use of double quotes for python string comparisons.
That messed up the template syntax highlighting, since double quotes were
already being used around the HTML attribute values.
2016-06-23 10:25:06 +01:00
OktayAltay
9358e3b611
Add new FloatBlock, DecimalBlock and a RegexBlock ( #2737 )
2016-06-23 10:14:28 +01:00
kakulukia
334bebc55c
dont enforce HTML templates :(
2016-06-22 16:09:51 +01:00
Nick Smith
66a17e6b7d
Upgrade BeautifulSoup→4.4.1 ( #2772 )
2016-06-22 11:07:17 +01:00
Matt Westcott
e2c9c878de
Add Paul J Stevens to contributors
2016-06-21 13:08:07 +01:00
Karl Hobley
97b1a3b897
Fix ability to set streamfield from string or list
...
For example:
>>> page.body = '{"type": "text", "value": "foo"}'
>>> type(page.body)
StreamValue
Removing SubFieldBase broke this behaviour, requiring that the string is converted to a StreamValue before giving it to page.body. I initially thought that the new behaviour was the correct one (doing this convertion on set felt a little yuky), until I found a test which tests for the old behaviour: d8bceff38b/wagtail/wagtailcore/tests/test_streamfield.py (L124-L133)
.
So I guess it is wanted then. This commit reinstates that old behaviour borrowing some code from Django.
2016-06-21 13:04:34 +01:00
Karl Hobley
480aca681f
Replaced SubFieldBase with Field.from_db_value. Fixes #2070
2016-06-21 13:04:33 +01:00
Vincent Audebert
921a510d9f
Fixing webpack config for production mode.
...
We don't want inline source in prod. Optimising final bundle size a lot.
For dev mode, cheap-module-eval is faster than inline-source.
2016-06-21 12:36:39 +01:00
Mike Dingjan
33f53a6e78
Added __bool__ method for proper evaluating the RichText object value
2016-06-21 12:04:52 +01:00
Robert Rollins
6ae36c0baa
Added __str__() to GroupPagePermissions.
...
It returns the same format as GroupCollectionPermissions.
2016-06-21 11:44:20 +01:00
Matt Westcott
87e9c63dbf
Split remove_filter_model migration to prevent Postgres errors - fixes #2754
2016-06-21 10:35:26 +01:00
Matt Westcott
ec55c5d73c
Cleaner implementation of ChooserBlock.bulk_to_python
2016-06-21 10:30:19 +01:00
Mikalai Radchuk
b54b2d837c
Commands compatibility with Django 1.10
2016-06-21 10:21:41 +01:00
Matt Westcott
a6f6661e26
flake8 fixes
2016-06-20 20:39:27 +01:00
ludolf_takens
19e3017de0
Fix broken test creating page with streamfield
2016-06-20 20:09:32 +01:00
Karl Hobley
980cc07ef0
Removed drone images
...
See .drone.yml and https://hub.docker.com/r/torchbox/scss-lint/
2016-06-20 15:57:30 +01:00
Karl Hobley
458d0af565
Update .drone.yml for Drone 0.5 ( #2761 )
2016-06-20 15:55:12 +01:00
Matt Westcott
38eb2655a6
Fix `indent_size` typo
2016-06-19 11:59:49 +01:00
Oktay Altay
31ce2e802c
Add new EmailBlock and IntegerBlock
2016-06-17 23:39:49 +01:00
Karl Hobley
35e506c47f
Changelog/release note for #2715
2016-06-17 15:51:39 +01:00
Matt Westcott
5b018e31ef
Make unlink action register a change to rich text areas - fixes #2704 ( #2715 )
2016-06-17 15:43:07 +01:00
Michael van Tellingen
d82e38e11e
Implement support for using pytest ( #2735 )
...
This adds a conftest.py module to setup the test infrastructure
correctly. It doesn't yet add pytest and pytest-django to the testing
requirements so for now it is completly optional.
This change also updates the test_migrations testcase to use a regular
TestCase baseclass instead of the TransactionTestCase. Otherwise the
following tests fail with db errors.
2016-06-17 15:06:21 +01:00
Michael van Tellingen
7d7509aee5
Implement initial version of Block.bulk_to_python (with jaroel)
...
This prevents n+ queries for n blocks of a specific type.
2016-06-17 15:08:14 +02:00
Rob Moorman
74d13822d5
Added .editorconfig ( #2740 )
...
* Added .editorconfig
* Added json and yml for 2 space indenting
* Added scss for 4 space indenting
2016-06-17 14:00:24 +01:00
Mikalai Radchuk
a65c707db3
Disable cls._deferred check for >=Django 1.10 ( #2731 )
...
* Fixes cls._deferred check for Django 1.10
* Add test for the _deferred check in PageBase
Background: https://github.com/torchbox/wagtail/pull/2731#issuecomment-226722773
2016-06-17 12:52:24 +01:00
Mikalai Radchuk
408dcbed43
CI configuration for Django 1.10 ( #2724 )
...
Adds Django 1.10a1 into tox.ini
Also adds Django 1.10 into .travis.yaml
2016-06-17 10:12:53 +01:00
Karl Hobley
7d490f7a6f
Coding style tweaks to wagtail.wagtailadmin.utils.popular_tags_for_model
...
- flake8 didn't like the indentation of the query
- isort wanted to wrap a couple of imports
- I also tripple-quoted the docstring to follow PEP 257
2016-06-17 09:51:57 +01:00
Matt Westcott
367c71dbaa
TagSearchable needs to be removed from migrations
2016-06-17 09:45:28 +01:00
Karl Hobley
ea7a9a29f6
Deprecate taggable module
2016-06-17 09:44:46 +01:00
Karl Hobley
e21c94d8d2
AbstractImage no longer depends on TagSearchable
2016-06-17 09:44:46 +01:00
Karl Hobley
c2587b3b6c
AbstractDocument no longer depends on TagSearchable
2016-06-17 09:44:46 +01:00
Matt Westcott
6549b2d238
replace TagSearchable.popular_tags with wagtailadmin.utils.popular_tags_for_model
2016-06-17 09:44:46 +01:00