Skip to content
Snippets Groups Projects
Commit 16a610b1 authored by Christoph Schmidt's avatar Christoph Schmidt
Browse files

Fixed wrongly written serialize field function

parent f33524c7
Branches
Tags
No related merge requests found
......@@ -81,7 +81,7 @@ class Field(Generic[T], CObject):
def serialize(self):
"""Used for serializing instances. Returns the current field as a yaml-line."""
return f"{self.name}.{self.field_name}: {self._yaml_repr()} # {self.friendly_name}: {self.description}"
return f"{self.field_name}: {self._yaml_repr()} # {self.friendly_name}: {self.description}"
def connect_property(self, instance, prop: property):
self.props.append((instance, prop))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment