Intercepting Django fields access

25 Views Asked by At

I understand that Django fields are Python descriptors. Is it possible that I do something extra when I access the field of a Django model? For example, articleInstsnce.author normally returns an Author object, can I also make Django print a log during the access?

0

There are 0 best solutions below