diff --git a/jet/dashboard/dashboard.py b/jet/dashboard/dashboard.py index f7104bc4..66363747 100644 --- a/jet/dashboard/dashboard.py +++ b/jet/dashboard/dashboard.py @@ -137,7 +137,7 @@ def load_modules(self): user=self.context['request'].user.pk ).all() - if len(module_models) == 0: + if not module_models.exists(): module_models = self.create_initial_module_models(self.context['request'].user) loaded_modules = []