Browse Source

Fix example about Default values (#4230)

Huang Huang 7 years ago
parent
commit
aa4332b49c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/internals/guide.rst

+ 1 - 1
docs/internals/guide.rst

@@ -93,7 +93,7 @@ as this means that they can be set by either instantiation or inheritance.
         active = True
         serializer = 'json'
 
-        def __init__(self, serializer=None):
+        def __init__(self, serializer=None, active=None):
             self.serializer = serializer or self.serializer
 
             # must check for None when value can be false-y