Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flask_restplus/swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from werkzeug.routing import parse_rule

from . import fields
from .model import Model, ModelBase
from .model import Model, ModelBase, OrderedModel
from .reqparse import RequestParser
from .utils import merge, not_none, not_none_sorted
from ._http import HTTPStatus
Expand Down Expand Up @@ -537,7 +537,7 @@ def register_model(self, model):
if isinstance(specs, ModelBase):
for parent in specs.__parents__:
self.register_model(parent)
if isinstance(specs, Model):
if isinstance(specs, (Model, OrderedModel)):
for field in itervalues(specs):
self.register_field(field)
return ref(model)
Expand Down