Add a getter for destinations to the Source.

dev
KKlochko 2 years ago
parent d3bc4bd5a2
commit 66c389abfa

@ -90,6 +90,14 @@ class Source(BaseModel):
path=destination_path path=destination_path
) )
def get_destinations(self):
destionations = []
for dest in self.destinations:
destionations.append(dest.path)
return destionations
def update_label(self, new_label): def update_label(self, new_label):
self.label = new_label self.label = new_label
self.save() self.save()

Loading…
Cancel
Save