How to Use RetrieveModelMixin with Generic View for Retrieving single Data | DRF

preview_player
Показать описание
🔶🔸🔶🔸 Video Description 🔸🔶🔸🔶
In this video I have explained about the RetriveModelMixin which is used to get only 1 object from the database. Watch video till the end.

🔶🔸🔶🔸 CODE 🔸🔶🔸🔶

🔶🔸🔶🔸 Playlists 🔸🔶🔸🔶

#djangoworld #python #djangorestframework

🔶🔸🔶🔸 Social🔸🔶🔸🔶

🔶🔸🔶🔸 About 🔸🔶🔸🔶
• Yash Patel
• Studied: B.Tech
• Age: 22
• Location: Gujarat, India.
Рекомендации по теме
Комментарии
Автор

If instead of pk, suppose we want to retrieve by slug field, then how can we override the RetrieveModelMixin class so that it picks up the blog post based on the slug?

codedjango
visit shbcf.ru