edit user validations, active-inactive api

This commit is contained in:
abutalib-kiwi
2023-08-07 10:55:34 +05:30
parent 401ee1ddf8
commit 4a2f36cde8
4 changed files with 108 additions and 22 deletions

View File

@ -109,7 +109,7 @@ class ArticleViewSet(GenericViewSet, mixins.CreateModelMixin, mixins.UpdateModel
return custom_response(SUCCESS_CODE["3029"])
return custom_error_response(ERROR_CODE["2041"], status.HTTP_400_BAD_REQUEST)
@action(methods=['get'], url_name='remove_card', url_path='remove_card',
@action(methods=['get'], url_name='remove-card', url_path='remove-card',
detail=True)
def remove_article_card(self, request, *args, **kwargs):
"""
@ -125,7 +125,7 @@ class ArticleViewSet(GenericViewSet, mixins.CreateModelMixin, mixins.UpdateModel
except AttributeError:
return custom_error_response(ERROR_CODE["2042"], response_status=status.HTTP_400_BAD_REQUEST)
@action(methods=['get'], url_name='remove_survey', url_path='remove_survey',
@action(methods=['get'], url_name='remove-survey', url_path='remove-survey',
detail=True)
def remove_article_survey(self, request, *args, **kwargs):
"""