18 - How to implement soft delete in Django and introduction to query managers

Опубликовано: 20 Сентябрь 2021
на канале: Rowadz
3,109
50

Buy me a coffee if this is useful 😀
https://www.buymeacoffee.com/rowadz

previous video number 17
   • 17 - Querying datetime in Django ORM ...  

repo [code]:
https://github.com/Rowadz/django-reac...

The Django playlist (this playlist):
   • Django  

A series about Django, Django-rest-framework

DOCS::
Query Managers
https://docs.djangoproject.com/en/3.2...

00:00 Introduction about soft delete and query managers
01:05 What we will do
01:53 Creating a base soft delete abstract Django model
03:50 Creating our soft delete manager that will attach a "where deleted is False" to all our queries
5:57 Testing what we did (seeing the generated queries)
07:00 Using 2 query managers in the same model
8:27 Override the delete method and create soft_delete and restore methods


Смотрите видео 18 - How to implement soft delete in Django and introduction to query managers онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Rowadz 20 Сентябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,109 раз и оно понравилось 50 людям.