Changes between Version 14 and Version 15 of NewformsHOWTO
- Timestamp:
- 02/19/2008 07:49:17 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewformsHOWTO
v14 v15 465 465 If you want custom validation for a field in the admin '''and''' newforms [http://www.djangoproject.com/documentation/modelforms/ ModelForm] instances you can subclass a field in your model and override ```formfield()```. You can then return the form field you like or a complete [http://www.djangoproject.com/documentation/newforms/#creating-custom-fields custom form field]. 466 466 467 Here we add regex validation to a field (see #6556 for the workaround ):467 Here we add regex validation to a field (see #6556 for the workaround till the fix is merged to newforms-admin): 468 468 469 469 {{{