i got error 'type' object is not subscriptable

25 views
Skip to first unread message

Sagar Singh

unread,
Nov 17, 2022, 9:22:03 AM11/17/22
to Django users
i created three model relation table

onetoone()
manytoone(foreignkey)
manytomanyfield()

i try to show data of manytpmany field on admin panel but they give error

'type' object is not subscriptable
error django.png
model .png
admin.png
django error.png

subin

unread,
Nov 19, 2022, 4:04:24 PM11/19/22
to django...@googlegroups.com
Hope you had a good time.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5054dcaa-d896-487c-8dee-177d281049cen%40googlegroups.com.

Toshar Saini

unread,
Nov 21, 2022, 8:47:47 AM11/21/22
to django...@googlegroups.com
you don't show many to many field in list_display on admin panel

--

Chukwudi Onwusa

unread,
Nov 21, 2022, 10:22:45 AM11/21/22
to django...@googlegroups.com
Your screenshots are not clear enough.

--

Chukwudi Onwusa

unread,
Nov 21, 2022, 10:22:48 AM11/21/22
to django...@googlegroups.com
Use Win Key + prt SC
To screenshot of you are using windows 10 OS

Lakshyaraj Dash

unread,
Nov 21, 2022, 10:53:26 AM11/21/22
to django...@googlegroups.com
Try onetomany relationship 

--
Reply all
Reply to author
Forward
0 new messages