code set to an string 'invalid_choice' and dictionary params with an entry: val for 'value'. define the method _has_changed with arguments self, initial and data.
def _has_changed ( self , initial , data ) :