diff --git a/beat/web/plotters/models.py b/beat/web/plotters/models.py index 0396001a23124e48338d483f7b11c6806fed7d6e..2e5a9f8a9f92c7d8353b129e8c235f23675a3f3b 100755 --- a/beat/web/plotters/models.py +++ b/beat/web/plotters/models.py @@ -284,7 +284,7 @@ class PlotterParameter(Contribution): def deletable(self): """Can be deleted if nobody points at me""" - return super(PlotterParameter, self).deletable() and (self.defaults.count() == 0) and (self.sharing == Shareable.PRIVATE) + return super(PlotterParameter, self).deletable() and (self.defaults.count() == 0) and (self.sharing == Shareable.PRIVATE) and (len(self.reports.all()) == 0) #_____ Utilities __________