diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 43d6bbe35586..63318fdec3ee 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -10135,6 +10135,10 @@ class Page(Base, HasTags, Dictifiable, RepresentById, UsesCreateAndUpdateTime): def to_dict(self, view="element"): rval = super().to_dict(view=view) + if "importable" in rval and rval["importable"] is None: + # pages created prior to 2011 might not have importable field + # probably not worth creating a migration to fix that + rval["importable"] = False rev = [] for a in self.revisions: rev.append(a.id)