diff --git a/db.sqlite3 b/db.sqlite3 index 141f6c83d..fa4335228 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/feedback/views.py b/feedback/views.py index da8c679f1..8c8aa6b88 100644 --- a/feedback/views.py +++ b/feedback/views.py @@ -28,6 +28,7 @@ class FeedbackAPIView(APIView): instance=nowrating, # Передаём набор записей , "rat":serializer_for_queryset2.data many=True # Указываем, что на вход подаётся именно набор записей ) + return Response({"basecrit":serializer_for_basecrit.data, "nowrating":serializer_for_nowrating.data, "nowcomment": serializer_for_nowcomment.data[0] if len(nowcomment)>0 else None @@ -38,7 +39,6 @@ class FeedbackAPIView(APIView): for x in request.data['nowrating']: RatingStatus.objects.update_or_create(id=x['id'], defaults={'rating':x['rating'], 'crit_id':x['crit'], 'usercom_id':comment.id}) - print(comment, created, 'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh') return Response({}) diff --git a/front/src/components/news-list.vue b/front/src/components/news-list.vue index 85bfd15b2..a688127ac 100644 --- a/front/src/components/news-list.vue +++ b/front/src/components/news-list.vue @@ -1,11 +1,11 @@