Mike,

I've been trying to solve a similar problem to you.  I first tried
making a custom form field based on the tagging extensions floating
about.  I've documented what I came up with here:
http://code.djangoproject.com/wiki/CustomFormFields

But... I now think that this is the wrong way to go about doing things
(based on the mess I came up with).  Custom manipulators are the way
to go (IMHO).  I came up with this little gem:
http://code.djangoproject.com/wiki/ManipulatorScript which will
generate a skeleton manipulator based on your model's definition. 
When I say gem I mean one of those uncut, rough little things that
look like a piece of coal.

Look at the tagging examples if you just wish to add authors based on
what the user enters.  Use a custom manipulator if you only want the
user to enter authors already in the database.

Hope this helps in some way,

F.

On 3/13/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 3/13/06, Mike Kent <[EMAIL PROTECTED]> wrote:
> > However, for the end-user interface, I wanted to go with a different
> > look.  I probably worded what I wanted badly:  the key concept is that,
> > for a Book model that has a many-to-many 'authors' field linking to an
> > Author model, I want a UI field where the user enters a comma-separated
> > list of author names, which is then transformed into the appropriate
> > adds.
>
> Hi Mike,
>
> Now I see. The UI you're after isn't supported by the automatic admin
> interface, so you'll have to code it up yourself. See the "Forms and
> manipulators" documentation.
>
> Adrian
>
> --
> Adrian Holovaty
> holovaty.com | djangoproject.com
>
>
>

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

Reply via email to