Skip to content

Commit

Permalink
Merge pull request #10 from igorkramaric/fix-django-v2.1
Browse files Browse the repository at this point in the history
Fix django v2.1
  • Loading branch information
kckaiwei authored Jun 22, 2020
2 parents 8f096cf + c870212 commit 7b3ad2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
4 changes: 2 additions & 2 deletions jsonate/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
return super(JsonateWidget, self).render(name, value, attrs, renderer)

0 comments on commit 7b3ad2c

Please sign in to comment.