diff --git a/external_file_location/task.py b/external_file_location/task.py index 701e0827..8e2460df 100644 --- a/external_file_location/task.py +++ b/external_file_location/task.py @@ -53,8 +53,8 @@ class Task(models.Model): res = [] for cls in itersubclasses(AbstractTask): if cls._synchronize_type \ - and ('protocol' not in self._context - or cls._key == self._context['protocol']): + and ('protocol' not in self._context + or cls._key == self._context['protocol']): cls_info = (cls._key + '_' + cls._synchronize_type, cls._name + ' ' + cls._synchronize_type) res.append(cls_info)