diff --git a/src/web/djangodb.py b/src/web/djangodb.py index 43aaa5b5d..332b71f2c 100644 --- a/src/web/djangodb.py +++ b/src/web/djangodb.py @@ -72,6 +72,10 @@ class DjangoDb(GrampsDbBase): def iter_person_handles(self): return (person.handle for person in self.dji.Person.all()) + def iter_families(self): + return (self.get_family_from_handle(family.handle) + for family in self.dji.Family.all()) + def get_person_from_gramps_id(self, gramps_id): obj = gen.lib.Person() match_list = self.dji.Person.filter(gramps_id=gramps_id)