title: How do I invalidate @cached_property in django
body: <p>I am currently using <code>@cached_property</code> on a model class and I would like to delete it on save so that it can be repopulated on the next call. How do I do this?
  Example:</p>
  
  <pre><code>class Amodel():
      #...model_fields....
  
      @cached_property
      def db_connection(self):
          #get some thing in the db and cache here
  
  
  instance = Amodel.objects.get(id=1)
  variable = instance.db_connection
  
  Amodel.objects.select_for_update().filter(id=1).update(#some variable)
  #invalidate instance.db_connection
  #new_variable = instance.db_connection
  </code></pre>
  
  <p>Thanks</p>