Skip to content

Commit 47c8c7b

Browse files
committed
Update Travis config to make tests pass with xenial
1 parent d5af47c commit 47c8c7b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1+
sudo: required
2+
dist: xenial
13
language: python
24

35
python:
46
- 3.5
57
- 3.6
6-
7-
matrix:
8-
include:
9-
- python: 3.7
10-
dist: xenial
11-
sudo: true
8+
- 3.7
129

1310
env:
1411
- DJANGO_VERSION=2.*

django_ajax/mixin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ def dispatch(self, request, *args, **kwargs):
2222
if self.json_encoder:
2323
ajax_kwargs['cls'] = self.json_encoder
2424

25-
return ajax(**ajax_kwargs)(super(
26-
AJAXMixin, self).dispatch)(request, *args, **kwargs)
25+
return ajax(**ajax_kwargs)(super(AJAXMixin, self).dispatch)(request, *args, **kwargs)

0 commit comments

Comments
 (0)