Display ManyToManyField value or a select_related query in an html object list

31 views
Skip to first unread message

Charlotte Wood

unread,
Jun 24, 2019, 10:18:35 PM6/24/19
to Django users
HELP!

Do ManyToManyFields just not print?

I see them in my form selection.

Everything works fine, but when I try to put the linked item on a list form, i get:  project.model.none for the value.  I cannot figure out how to make all the values print.  HELP!  PLEASE!!

Ricardo Daniel Quiroga

unread,
Jun 24, 2019, 10:26:15 PM6/24/19
to django...@googlegroups.com
Hi,

model.many_to_many_atribute.all()
model.many_to_many_atribute.find(name="carl")


--
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...@googlegroups.com.
To post to this group, send email to django...@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/ec36b6b0-dc7a-4534-9af3-ae0a173fa493%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Ricardo Daniel Quiroga

Reply all
Reply to author
Forward
0 new messages