diff --git a/onadata/apps/logger/models/instance.py b/onadata/apps/logger/models/instance.py index a6a0fa371d..b39c434df3 100644 --- a/onadata/apps/logger/models/instance.py +++ b/onadata/apps/logger/models/instance.py @@ -563,6 +563,18 @@ def osm_data(self): def deleted_at(self): return None + @property + def total_media(self): + return self.xform_instance.total_media + + @property + def media_count(self): + return self.xform_instance.media_count + + @property + def media_all_received(self): + return self.xform_instance.media_all_received + def _set_parser(self): if not hasattr(self, "_parser"): self._parser = XFormInstanceParser(