DEV Community

Discussion on: Flask Rest API -Part:3- Authentication and Authorization

Collapse
 
marwazi_siagian_aa4830070 profile image
Marwazi Siagian

Great Tutorial. Just a small comment.

under the final PUT function, shouldn't you use:
movie.update(**body)

instead of:
Movie.objects.get(id=id).update(**body)

to update the movie data?