mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2025-04-19 16:12:02 +03:00
change-update-view-to-use-put-http-method
This commit is contained in:
parent
231773a58b
commit
5edd6dd597
|
@ -1218,7 +1218,7 @@ class CourseUpdateApi(SomeAuthenticationMixin, APIView):
|
|||
start_date = serializers.DateField(required=False)
|
||||
end_date = serializers.DateField(required=False)
|
||||
|
||||
def post(self, request, course_id):
|
||||
def put(self, request, course_id):
|
||||
serializer = self.InputSerializer(data=request.data)
|
||||
serializer.is_valid(raise_exception=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user