Skip to content

Commit

Permalink
fix predictable order example in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
plq committed Apr 5, 2017
1 parent 768ef59 commit 3125a1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/source/manual/03_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ The default value of that attribute is going to change in future version
of Spyne to ``"name"``. Since the preivous example had the fields sorted by
name this will produce the same outcome: ::

PredictableComplexModel = ComplexModel.customize(declare_order="name")
class PredictableComplexModel(ComplexModelBase):
class Attributes(ComplexModelBase.Attributes)
declare_order = "name"

class Permission(PredictableComplexModel):
application = Unicode
Expand Down

0 comments on commit 3125a1f

Please sign in to comment.