i have an issue, i don know if it really can be done.
im using django 1.3
i have a model producto(product) and Tienda(store)
and a product could be in one or more stores, so i created a many to many relationship but y have a stock in each store, so i use the intermediary model ProductStore.
i want to create this, in the admin , product's list display, i want to show each manutomany relationship as a diferent column qith the stock as the value.
as shown in the picture, this i could do by add a method in the model getTienda1 and return the stock and do it for each store, but i want it to be created dinamically because the user could create a new store and it will not be there.
so this is my cuestion: can i do that?
(Sorry for my bad english)
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/whHmIGyht_IJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:
Post a Comment