Skip to content
Snippets Groups Projects
Commit d94910ac authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-320: added property filepath to Dataproduct

parent 135337be
No related branches found
No related tags found
2 merge requests!308Resolve TMSS-495,!306Resolve TMSS-320
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment