Просмотр исходного кода

edited docstring for CSVFileField

Alyssa Bigley 4 лет назад
Родитель
Сommit
ecd84d7c43
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      netbox/utilities/forms/fields.py

+ 4 - 3
netbox/utilities/forms/fields.py

@@ -224,9 +224,10 @@ class CSVDataField(forms.CharField):
 
 class CSVFileField(forms.FileField):
     """
-    A CharField (rendered as a Textarea) which accepts CSV-formatted data. It returns data as a two-tuple: The first
-    item is a dictionary of column headers, mapping field names to the attribute by which they match a related object
-    (where applicable). The second item is a list of dictionaries, each representing a discrete row of CSV data.
+    A FileField (rendered as a file input button) which accepts a file containing CSV-formatted data. It returns
+    data as a two-tuple: The first item is a dictionary of column headers, mapping field names to the attribute
+    by which they match a related object (where applicable). The second item is a list of dictionaries, each
+    representing a discrete row of CSV data.
 
     :param from_form: The form from which the field derives its validation rules.
     """