[Answer]-Is_valid() throw exception when a simple form is invalid in django 1.6

1👍

The problem is this line: username.error_messages="kkkkkk". error_messages needs to be a dict, like this:

username.error_messages = {'required': 'username is required'}
👤sk1p

Leave a comment