parent
ee4789776a
commit
eba228a114
|
|
@ -9,6 +9,7 @@ Changelog
|
||||||
|
|
||||||
- **ADDED:** :ref:`generate_swagger management command <management-command>`
|
- **ADDED:** :ref:`generate_swagger management command <management-command>`
|
||||||
(:issue:`29`, :pr:`31`, thanks to :ghuser:`beaugunderson`)
|
(:issue:`29`, :pr:`31`, thanks to :ghuser:`beaugunderson`)
|
||||||
|
- **FIXED:** fixed improper generation of ``\Z`` regex tokens - will now be repalced by ``$``
|
||||||
|
|
||||||
*********
|
*********
|
||||||
**1.1.0**
|
**1.1.0**
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
from pkg_resources import get_distribution, DistributionNotFound
|
from pkg_resources import DistributionNotFound, get_distribution
|
||||||
|
|
||||||
__author__ = """Cristi V."""
|
__author__ = """Cristi V."""
|
||||||
__email__ = 'cristi@cvjd.me'
|
__email__ = 'cristi@cvjd.me'
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,13 @@
|
||||||
|
from ..app_settings import swagger_settings
|
||||||
from .base import (
|
from .base import (
|
||||||
BaseInspector, ViewInspector, FilterInspector, PaginatorInspector,
|
BaseInspector, FieldInspector, FilterInspector, NotHandled, PaginatorInspector, SerializerInspector, ViewInspector
|
||||||
FieldInspector, SerializerInspector, NotHandled
|
|
||||||
)
|
)
|
||||||
from .field import (
|
from .field import (
|
||||||
InlineSerializerInspector, ReferencingSerializerInspector, RelatedFieldInspector, SimpleFieldInspector,
|
CamelCaseJSONFilter, ChoiceFieldInspector, DictFieldInspector, FileFieldInspector, InlineSerializerInspector,
|
||||||
FileFieldInspector, ChoiceFieldInspector, DictFieldInspector, StringDefaultFieldInspector,
|
ReferencingSerializerInspector, RelatedFieldInspector, SimpleFieldInspector, StringDefaultFieldInspector
|
||||||
CamelCaseJSONFilter
|
|
||||||
)
|
|
||||||
from .query import (
|
|
||||||
CoreAPICompatInspector, DjangoRestResponsePagination
|
|
||||||
)
|
)
|
||||||
|
from .query import CoreAPICompatInspector, DjangoRestResponsePagination
|
||||||
from .view import SwaggerAutoSchema
|
from .view import SwaggerAutoSchema
|
||||||
from ..app_settings import swagger_settings
|
|
||||||
|
|
||||||
# these settings must be accesed only after definig/importing all the classes in this module to avoid ImportErrors
|
# these settings must be accesed only after definig/importing all the classes in this module to avoid ImportErrors
|
||||||
ViewInspector.field_inspectors = swagger_settings.DEFAULT_FIELD_INSPECTORS
|
ViewInspector.field_inspectors = swagger_settings.DEFAULT_FIELD_INSPECTORS
|
||||||
|
|
|
||||||
1
tox.ini
1
tox.ini
|
|
@ -61,6 +61,7 @@ exclude = **/migrations/*
|
||||||
[isort]
|
[isort]
|
||||||
skip = .eggs,.tox,docs
|
skip = .eggs,.tox,docs
|
||||||
skip_glob = **/migrations/*
|
skip_glob = **/migrations/*
|
||||||
|
not_skip = __init__.py
|
||||||
atomic = true
|
atomic = true
|
||||||
multi_line_output = 5
|
multi_line_output = 5
|
||||||
line_length = 120
|
line_length = 120
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue