diff --git a/beat/web/libraries/models.py b/beat/web/libraries/models.py index 2c39ab852fa7d37b954bf1836721770685dd7182..e2ec84b87b38d8c8f59924dcf7ea941bd4120daa 100644 --- a/beat/web/libraries/models.py +++ b/beat/web/libraries/models.py @@ -202,6 +202,10 @@ class Library(Code): return super(Library, self).deletable() and ((self.referencing.count() + self.used_by_algorithms.count()) == 0) + def valid(self): + return True # A library (at least for now) is always implemented in Python, + # thus always valid + def core(self): return validate_library(self.declaration)