Browse Source

Fix docs error with deconstruct() docs

Andrew Godwin 11 năm trước cách đây
mục cha
commit
13ec89f267
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/howto/custom-model-fields.txt

+ 1 - 1
docs/howto/custom-model-fields.txt

@@ -289,7 +289,7 @@ into ``kwargs`` yourself::
         "Implements comma-separated storage of lists"
 
         def __init__(self, separator=",", *args, **kwargs):
-            self.separator = ","
+            self.separator = separator
             super(CommaSepField, self).__init__(*args, **kwargs)
 
         def deconstruct(self):