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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user