UI - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: выравнивание home-шапки и системных уведомлений

This commit is contained in:
DCCONSTRUCTIONS
2026-04-26 11:52:29 +03:00
parent ba996998e8
commit 8b5f15333a
9 changed files with 109 additions and 110 deletions
@@ -34,9 +34,7 @@ class WorkspaceHomePreferenceViewSet(BaseAPIView):
if key not in ["quick_tutorial", "new_at_plane"]
]
sort_order_counter = 1
for preference in keys:
for sort_order_counter, preference in enumerate(keys, start=1):
if preference not in get_preference.values_list("key", flat=True):
create_preference_keys.append(preference)
@@ -55,7 +53,6 @@ class WorkspaceHomePreferenceViewSet(BaseAPIView):
batch_size=10,
ignore_conflicts=True,
)
sort_order_counter += 1
preference = WorkspaceHomePreference.objects.filter(user=request.user, workspace_id=workspace.id)