Commit d5be1142 authored by Liam Brenner's avatar Liam Brenner Committed by GitHub
Browse files

Merge pull request #11 from takeflight/dj110-compatability

Added django 1.10 compatibility
parents e9a84869 d36a416d
...@@ -16,6 +16,8 @@ env: ...@@ -16,6 +16,8 @@ env:
- DJANGO='19' WAGTAIL='14' - DJANGO='19' WAGTAIL='14'
- DJANGO='18' WAGTAIL='15' - DJANGO='18' WAGTAIL='15'
- DJANGO='19' WAGTAIL='15' - DJANGO='19' WAGTAIL='15'
- DJANGO='19' WAGTAIL='16'
- DJANGO='110' WAGTAIL='16'
before_install: before_install:
# - sudo add-apt-repository ppa:mc3man/trusty-media -y // Inlcudes all multimedia options but 404s currently :( # - sudo add-apt-repository ppa:mc3man/trusty-media -y // Inlcudes all multimedia options but 404s currently :(
......
...@@ -2,23 +2,24 @@ ...@@ -2,23 +2,24 @@
skip_missing_interpreters = True skip_missing_interpreters = True
envlist = envlist =
py{27,34,35}-dj{18,19}-wt{14,15} # Wagtail LTS
py{27,34,35}-dj{18,19}-wt14
# Last version
py{27,34,35}-dj{18,19}-wt15
# Current version
py{27,34,35}-dj{19,110}-wt16
[testenv] [testenv]
commands=python runtests.py {posargs} commands = python runtests.py {posargs}
usedevelop = True
pip_pre = True pip_pre = True
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
deps = deps =
mock mock
dj18: Django~=1.8.0 dj18: Django~=1.8.0
dj19: Django~=1.9.0 dj19: Django~=1.9.0
dj110: Django~=1.10.0
wt13: wagtail~=1.3.0 wt13: wagtail~=1.3.0
wt14: wagtail~=1.4.0 wt14: wagtail~=1.4.0
wt15: wagtail~=1.5.0 wt15: wagtail~=1.5.0
wt16: wagtail~=1.6.0
...@@ -4,9 +4,7 @@ import mimetypes ...@@ -4,9 +4,7 @@ import mimetypes
from django import template from django import template
from django.forms.widgets import flatatt from django.forms.widgets import flatatt
from django.template import resolve_variable
from django.utils.text import mark_safe from django.utils.text import mark_safe
from wagtailvideos.models import MediaFormats, Video from wagtailvideos.models import MediaFormats, Video
register = template.Library() register = template.Library()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment