diff --git a/SAS/TMSS/src/tmss/tmssapp/models/scheduling.py b/SAS/TMSS/src/tmss/tmssapp/models/scheduling.py index a03601d7a6cae36d16fdcb967e26cf7606f073ce..ee6b7d2e752b3ccc09a654034c9df5f13e088717 100644 --- a/SAS/TMSS/src/tmss/tmssapp/models/scheduling.py +++ b/SAS/TMSS/src/tmss/tmssapp/models/scheduling.py @@ -334,6 +334,10 @@ class Dataproduct(BasicCommon): super().save(force_insert, force_update, using, update_fields) + @property + def filepath(self): + '''return the full path of the dataproduct''' + return os.path.join(self.directory, self.filename) class AntennaSet(NamedCommon): station_type = ForeignKey('StationType', null=False, on_delete=PROTECT)