Fix: Videos were not saved correctly as viewed on the server
This commit is contained in:
parent
2d3d00c441
commit
64a1fd184f
2 changed files with 3 additions and 1 deletions
|
|
@ -62,6 +62,8 @@ def user_liked_detail(request, id):
|
|||
return Response(serializer.data, status=status.HTTP_200_OK)
|
||||
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
@api_view(['PUT'])
|
||||
@permission_classes([IsAuthenticated])
|
||||
def user_watched_detail(request, id):
|
||||
try:
|
||||
user = CustomUser.objects.get(pk=id)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ urlpatterns = [
|
|||
path('users/', user_views.user_list, name='user_list'),
|
||||
path('users/<int:id>/', user_views.user_detail, name='user_detail'),
|
||||
path('users/liked/<int:id>/', user_views.user_liked_detail, name='user_liked_detail'),
|
||||
path('users/watched/<int:id>/', user_views.user_liked_detail, name='user_liked_detail'),
|
||||
path('users/watched/<int:id>/', user_views.user_watched_detail, name='user_watched_detail'),
|
||||
|
||||
# Authentication URLs
|
||||
path('auth/', AuthView.as_view(), name='auth_view'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue