From ecd84d7c430cf2c75f99440f5535bea7d367bdb1 Mon Sep 17 00:00:00 2001 From: Alyssa Bigley Date: Mon, 7 Jun 2021 11:52:31 -0400 Subject: [PATCH] edited docstring for CSVFileField --- netbox/utilities/forms/fields.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netbox/utilities/forms/fields.py b/netbox/utilities/forms/fields.py index 1d8e299e0..a8383de6e 100644 --- a/netbox/utilities/forms/fields.py +++ b/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. """