diff --git a/djangocms_navigation/views.py b/djangocms_navigation/views.py index 0f569273f..91be896ce 100644 --- a/djangocms_navigation/views.py +++ b/djangocms_navigation/views.py @@ -36,7 +36,9 @@ def get(self, request, *args, **kwargs): # Removing unpublished pages from queryset if model == Page: - queryset_data = [page for page in queryset_data if page.get_title_obj().versions.first().state != 'unpublished'] + queryset_data = [ + page for page in queryset_data if page.get_title_obj().versions.first().state != 'unpublished' + ] data = { "results": [{"text": str(obj), "id": obj.pk} for obj in queryset_data]