-
Notifications
You must be signed in to change notification settings - Fork 1
feat(ratings): Migrado rating de event a user, corregido los modelos … #62
Conversation
@@ -375,3 +385,64 @@ def post(self, request): | |||
status=status.HTTP_400_BAD_REQUEST, | |||
) | |||
return Response(user_data, status=status.HTTP_200_OK) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
habria que comprobar que el usuario que crea el rating está logueado y que no es otro cliente y que no ha puesto ya una opinion sobre dicho cliente
user/views.py
Outdated
@@ -146,6 +146,16 @@ def post(self, request, *args, **kwargs): | |||
|
|||
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) | |||
|
|||
class ClientIDListView(APIView): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esto para que es?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
que he aprobado sin querer
7ed9792
to
edcc756
Compare
Terminado el migrado de ratings. Se comprueba siempre que esté logueado, que solo puedan comentar usuarios de tipo OcialUser, que solo puedan tener un comentario por cliente, que funcionan correctamente los métodos delete, create y put |
Arreglado |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funcionalmente, va todo bien. A la espera de si el cambio de usar el token está bien hecho
0274c20
to
6d56d5f
Compare
6d56d5f
to
03a1ca1
Compare
|
…y los test de event ya funcionan