Maybe I didnt fully explain the issue, and it seems that Google added
a couple of extra lines to the code above.

Ive got an app with 2 Model classes.
The first one describes a product (the Item model above).
The second one (the Stuff model above), along with other data
references the Product via a ManyToMany key.
The basic default Admin settings, which work correctly, allow the
addition of new Products via the Green Plus Sign and a Pop-up Window.
Everything works fine.
However when adding new Products, the Admin interface sorts the
ManyToMany field by ID, instead of a much more intelligible Product
Name.  Lots of Products, too hard to find a particular one in the
list.
Thus I wrote up a Custom Admin Form to sort these Products in the
ManyToMany field.
This works great, the Products are sorted in ABC order.
But, with this Custom Admin Form, the ability to Add another Product
via the Little Green Plus Sign has been removed, the Plus Sign just
isnt there, and therefore cannot spawn the Pop-up Window to add
another Product to the Items model DB table.
It seems that this should be an easy fix, but I cant find any docs
that dont involve reinventing the wheel.

Yes, the Items model data can be accessed through another part of the
Admin interface, but I think the purpose of the Green Plus Sign was to
alleviate this extra step.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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