Test with Django 2.1 and Python 3.7 (#176)

* Test with Django 2.1 and Python 3.7
* Fix lint errors
* Remove setuptools-scm hack
* Factor out coverage script
* Cache .tox in travis
* Update README & docs
This commit is contained in:
Cristi Vîjdea
2018-08-06 12:24:56 +03:00
committed by GitHub
parent 904895ba3c
commit 16b6ed7fd6
17 changed files with 82 additions and 107 deletions
-1
View File
@@ -5,7 +5,6 @@ import json
from collections import OrderedDict
from coreapi.compat import force_bytes
from django.utils.safestring import SafeData, SafeText
from ruamel import yaml
from . import openapi
+1 -1
View File
@@ -117,7 +117,7 @@ def swagger_auto_schema(method=None, methods=None, auto_schema=unset, request_bo
# no overrides to set, no use in doing more work
return
# if the method is an @action, it will have a bind_to_methods attribute
# if the method is an @action, it will have a bind_to_methods attribute, or a mapper attribute for drf>3.8
bind_to_methods = getattr(view_method, 'bind_to_methods', [])
# if the method is actually a function based view (@api_view), it will have a 'cls' attribute
view_cls = getattr(view_method, 'cls', None)