Skip to content

Commit

Permalink
Fixes netbox-community#1268: Fix CSV import error under Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jun 14, 2017
1 parent da30400 commit e32e46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/utilities/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def to_python(self, value):
reader = csv.reader(value.splitlines())

# Consume and valdiate the first line of CSV data as column headers
headers = reader.next()
headers = next(reader)
for f in self.required_fields:
if f not in headers:
raise forms.ValidationError('Required column header "{}" not found.'.format(f))
Expand Down

0 comments on commit e32e46e

Please sign in to comment.