diff --git a/backend/setup/tests.py b/backend/setup/tests.py index 6f528b5a..530ce57e 100644 --- a/backend/setup/tests.py +++ b/backend/setup/tests.py @@ -55,7 +55,7 @@ def test_get_settings_success(self): self.assertEqual(response.status_code, status.HTTP_200_OK) data = response.json() self.assertEqual(data['display_mode'], 0) # 0 is the default value - self.assertEqual(data['default_menu'], 0) # 0 is the default value + self.assertEqual(data['default_menu'], 1) # 1 is the default value diff --git a/backend/setup/views.py b/backend/setup/views.py index e3670d88..f8db9a9f 100644 --- a/backend/setup/views.py +++ b/backend/setup/views.py @@ -33,7 +33,7 @@ def get(self, request): if not Setting.objects.filter(user=user).exists(): response_data = { "display_mode": 0, - "default_menu": 0, + "default_menu": 1, "updated_at": "" } else: