diff --git a/gramps/gen/lib/surname.py b/gramps/gen/lib/surname.py index 2915f71ca..f92236290 100644 --- a/gramps/gen/lib/surname.py +++ b/gramps/gen/lib/surname.py @@ -98,6 +98,16 @@ class Surname(SecondaryObject): "origintype": self.origintype.to_struct(), "connector": self.connector} + @classmethod + def get_schema(cls): + return { + "surname": str, + "prefix": str, + "primary": str, + "origintype": NameOriginType, + "connector": str + } + @classmethod def get_labels(cls, _): return {