- for model in Book, Picture:
- for model_instance in model.tagged.with_all([instance]).only('pk'):
- model_instance.clear_cache()
-
- if instance.category == 'author':
- for model in Fragment, PictureArea:
- for model_instance in model.tagged.with_all([instance]).only('pk'):
- model_instance.clear_cache()