Tuesday, April 3, 2018

Re: Display Many to Many Field in Django admin site

I need to see get_ingredients() . To guess what's happening?

On Tue, 3 Apr 2018, 21:22 mansi thakkar, <mansithakkar210@gmail.com> wrote:
Hello ,

In my database, there is one table named Product and the other table is Ingredient. Both are related with ManyToMany Relationship using bridge entity (table) named ProductIngredient. 

I am trying to display Many To Many field named ingredient in my Django admin site. 

Here is the attached code and screen shot of the error.

I would like to know the solution of this error and also any other way to display  the list of ingredients for each product. 

Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/63c89597-39c0-4765-ab43-4df41e729f4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANQmjds1Re5g9gyUQEQfxfz4S3VuHbOjqfyWUF2OhToE6k4fxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment