Commit e198232c authored by PIOLLE's avatar PIOLLE
Browse files

replaced v1 method call with v2 name

parent 8dd79369
......@@ -828,7 +828,7 @@ class Field(object):
"""
if self.dataset is not None:
if self.name not in self.dataset.get_fieldnames():
if self.name not in self.dataset.fieldnames:
raise ValueError("Field {} not existing".format(self.name))
self.dataset.rename({self.name: newname})
self.name = newname
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment