|Version 5 (modified by mrts, 8 years ago) (diff)|
Part of DjangoSpecifications
Media and validation in newforms-admin
Customizing the admin should be possible by specifying an extension form for the admin class, preferrably with a class field: class FooAdmin(admin.ModelAdmin): admin_form = FooAdminForm. Overriding get_form() is equally acceptable.
- Specifying this custom form should not disable automatic widgets
- Custom validation should be possible with the ordinary clean_field() and clean() overrides in the custom form and should not interfere with base field validation.
See ticket #6866 for a patch.