Django Rest Framework Task Association with User.

Опубликовано: 27 Июнь 2026
на канале: Techies Eyes
1,876
22

TechiesEyes.com
   / techieseyespro   :)


So far we created our Task APP with simple Task Name & Task Description Then we added Image & File Upload (Attachment to Task) & at the last we Apply some Filtering based on Task Status & Searching.
we add User Registration end point. /register

Now in this video, we will look how to associate Task to Authenticate User. so only Authenticated User perform CRUD Operations on Respective Task object.


Steps:-

0. Modify Task Model and add user field.
1. Modify TaskViewSet and override get_queryset and perform_create method .
2. Modify TaskSerializer.
3. Test API