diff --git a/rest-app/db.sqlite3 b/rest-app/db.sqlite3 index 9d5678d..683cf59 100644 Binary files a/rest-app/db.sqlite3 and b/rest-app/db.sqlite3 differ diff --git a/rest-app/smartpicasso/__pycache__/urls.cpython-38.pyc b/rest-app/smartpicasso/__pycache__/urls.cpython-38.pyc index e76a947..1e0968f 100644 Binary files a/rest-app/smartpicasso/__pycache__/urls.cpython-38.pyc and b/rest-app/smartpicasso/__pycache__/urls.cpython-38.pyc differ diff --git a/rest-app/smartpicasso/app/user_profile/__pycache__/models.cpython-38.pyc b/rest-app/smartpicasso/app/user_profile/__pycache__/models.cpython-38.pyc index 4adad8b..f6fe6fc 100644 Binary files a/rest-app/smartpicasso/app/user_profile/__pycache__/models.cpython-38.pyc and b/rest-app/smartpicasso/app/user_profile/__pycache__/models.cpython-38.pyc differ diff --git a/rest-app/smartpicasso/app/user_profile/tests.py b/rest-app/smartpicasso/app/user_profile/tests.py index bc84121..251d578 100644 --- a/rest-app/smartpicasso/app/user_profile/tests.py +++ b/rest-app/smartpicasso/app/user_profile/tests.py @@ -30,7 +30,7 @@ class UserProfileApiTest(APITestCase): user = User.objects.create_user(email='test@test.com', password='test') self.client.force_authenticate(user=user) response = self.client.get(self.profile_url, format='json') - self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(response.data['success'], 'False') def test_get_profile(self): diff --git a/rest-app/smartpicasso/app/user_profile/views.py b/rest-app/smartpicasso/app/user_profile/views.py index 04758b4..6c71141 100644 --- a/rest-app/smartpicasso/app/user_profile/views.py +++ b/rest-app/smartpicasso/app/user_profile/views.py @@ -30,7 +30,7 @@ class UserProfileView(RetrieveAPIView): } } except Exception as e: - status_code = status.HTTP_400_BAD_REQUEST + status_code = status.HTTP_404_NOT_FOUND response = { 'success': 'False', 'status_code': status_code,