Add validation for unique fields in newforms
|Reported by:||ctdecci@…||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Add validation for unique fields in newforms. The attached file may be a valid patch for this. It adds a clean_% method to the class created by form_for_model/form_for_instance. In form_for_model, it also adds the default field value as the initial value in the field (sorry for the piggybacking).