mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
removed unnecessary use of seek()
This commit is contained in:
parent
ecd84d7c43
commit
3549fc07f6
@ -246,7 +246,6 @@ class CSVFileField(forms.FileField):
|
||||
def to_python(self, file):
|
||||
|
||||
records = []
|
||||
file.seek(0)
|
||||
csv_str = file.read().decode('utf-8')
|
||||
reader = csv.reader(csv_str.splitlines())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user