diff --git a/.travis.yml b/.travis.yml index 597fe8a..0ed3231 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,14 @@ env: - DJANGO=1.9 - DJANGO=1.10 - DJANGO=1.11 + - DJANGO=2.0 + - DJANGO=2.1 +matrix: + exclude: + - python: "2.7" + env: DJANGO=2.0 + - python: "2.7" + env: DJANGO=2.1 install: - pip install django==${DJANGO} Pillow psycopg2 - pip install . diff --git a/jsonate/widgets.py b/jsonate/widgets.py index 7d05952..aa8d1e8 100644 --- a/jsonate/widgets.py +++ b/jsonate/widgets.py @@ -11,7 +11,7 @@ class JsonateWidget(forms.Textarea): - def render(self, name, value, attrs=None): + def render(self, name, value, attrs=None, renderer=None): if not isinstance(value, basestring): value = jsonate(value, indent=2) - return super(JsonateWidget, self).render(name, value, attrs) \ No newline at end of file + return super(JsonateWidget, self).render(name, value, attrs, renderer) \ No newline at end of file