Jurrian Tromp
Deep into Django

Deep into Django

Follow
Series

Deep into Django

Django offers a great deal of hidden functionality - secret gems - if you know where to look. In this serie I am showing tips and tricks to get the most out of Django.

Articles in this series

Diff mixin to detect changes in Django models instances

May 23, 202324 views

Suppose you change your Django model instance, how do you know if the data actually changed? There are a few ways to achieve this, for example using...

Diff mixin to detect changes in Django models instances
Show deleted entries in Django Simple History
JWT Authentication class for python requests
Reducing queries for ForeignKeys in Django admin inlines
Handling Django exceptions in the middleware
Prefetching in Django: less queries