Legend:

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):