On 6/26/07, leif <[EMAIL PROTECTED]> wrote:
> My main problem, though, is figuring out how to create a text input
> lookup field for the ZIP code foreign key.


> Do I need to code a new
> widget? A new form field class? A function to hook into newforms'
> validation?

> And if I create a widget or form field class, how to I coax Django
> into using it for the admin change and add pages?

Django's existing admin uses oldforms.  The newforms-admin branch is
working to rewrite admin to be more flexible and use newforms.  If you
need it on trunk now, you'll need to use oldforms.

You'll need to inherit from django.db.models.fields.Field and override
Field.get_manipulator_field_objs.

--~--~---------~--~----~------------~-------~--~----~
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