> First of all, it assumes you're generating the form manually.  What if
> you're using form_for_model, or more critically, using the admin
> interface?  Is there a way to specify custom form Field instances for
> a corresponding model Field in the admin?

Not sure about trunk but in newforms-admin at least you can just
subclass your model field and overwrite formfield() to get the admin
to use another form field. That way you can declare a custom form
field (or just a standard one like RegexField) to tweak your
validation for the forms generated from your model by ModelForm or
form_from_instance()/form_from_model().

Cheers,

Jonas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to