I'm maintaining a product in which we have a many-to-many relationship
which needs to have attributes in /some/ installations.
That means we'll define a tabular inline class and display in the admin.
But in /other /installations, these attributes are not needed, and we'd
like to just display a listbox. How do we do that?
According to this page:
https://docs.djangoproject.com/en/1.2/ref/contrib/admin/#working-with-many-to-many-intermediary-models
you need to do something in admin.py to get the tabular presentation -
but is it also possible to get a listbox, and how?
One could make the "through" link conditonal, but that complicates
matters as Django will then by default use a different database table to
store the class. I'd really like to keep the intermediate class but
"hide" it behind a simple multiple choice field when its attributes
aren't needed.
best regards,
--
Carsten Agger
Magenta ApS
Åbogade 15
8200 Århus N
Tlf +45 5060 1476
Mob +45 2086 5010
http://www.magenta-aps.dk
[email protected]
--
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.