title: Change Python Class attribute dynamically
body: <p>I have a Class B inheriting Class A with a class attribute cls_attr.
  And I would like to set dynamically cls_attr in class B.
  Something like that:</p>
  
  <pre><code>class A():
     cls_attr= 'value'
  
  class B(A):
  
     def get_cls_val(self):
         if xxx:
            return cls_attr = 'this_value'
         return cls_attr = 'that_value'
     cls_attr = get_cls_val()
  </code></pre>
  
  <p>I tried several things. I know i might not be looking in the right place but i am out of solutions.</p>
  
  <p><strong>EDIT:</strong> Classes are django admin classes</p>
  
  <p>Thanks.</p>