'Raise a ValidationError for invalid_choice.
The validation error left unprecise about the exact error for security
reasons, to prevent an attacker doing information gathering to reverse
valid content type and object ids.'

def raise_invalid_choice(self, params=None):

    raise forms.ValidationError(self.error_messages['invalid_choice'], code='invalid_choice', params=params)
