Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dariazueva authored Mar 22, 2024
1 parent 3070fe6 commit 0d87e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def subscribe(self, request, **kwargs):
user = request.user
author = get_object_or_404(CustomUser, pk=self.kwargs['id'])
if user == author:
return Response({''Нельзя подписаться на самого себя.'},
return Response({'Нельзя подписаться на самого себя.'},
status=status.HTTP_400_BAD_REQUEST)
if request.method == 'POST':
subscription, created = Subscriptions.objects.get_or_create(
Expand Down

0 comments on commit 0d87e94

Please sign in to comment.