瀏覽代碼

Fixed #24674 -- Documented the correct NullBooleanField formfield.

Thanks to knbk for the report.
Simon Charette 10 年之前
父節點
當前提交
37e23c6060
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/forms/modelforms.txt

+ 1 - 1
docs/topics/forms/modelforms.txt

@@ -96,7 +96,7 @@ Model field                         Form field
 :class:`ManyToManyField`            :class:`~django.forms.ModelMultipleChoiceField`
                                     (see below)
 
-:class:`NullBooleanField`           :class:`~django.forms.CharField`
+:class:`NullBooleanField`           :class:`~django.forms.NullBooleanField`
 
 :class:`PositiveIntegerField`       :class:`~django.forms.IntegerField`