Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Lakshyaraj Dash
Try onetomany relationship

On Thu, Nov 17, 2022, 19:51 Sagar Singh  wrote:

> 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
>
> --
> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF7qQgDTBnGB5oftLxYn9_ncfmRe6LxS4vuOG3cz%3DrxgBZK5MA%40mail.gmail.com.


Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Chukwudi Onwusa
Use Win Key + prt SC
To screenshot of you are using windows 10 OS

On Mon, Nov 21, 2022, 14:55 Chukwudi Onwusa  wrote:

> Your screenshots are not clear enough.
>
> On Thu, Nov 17, 2022, 15:21 Sagar Singh  wrote:
>
>> 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
>>
>> --
>> 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+unsubscr...@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
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGoV8nk6wL2b0Z5gtN%3DG4yf4G6xbW2_L-htPKaxeaP27zSLt5w%40mail.gmail.com.


Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Chukwudi Onwusa
Your screenshots are not clear enough.

On Thu, Nov 17, 2022, 15:21 Sagar Singh  wrote:

> 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
>
> --
> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGoV8nnARB84wQ4YX62T4C4H4%3DwtwKDHWQrL4HVx9qNgyodpVA%40mail.gmail.com.


Re: i got error 'type' object is not subscriptable

2022-11-21 Thread Toshar Saini
you don't show many to many field in list_display on admin panel

On Thu, Nov 17, 2022 at 7:51 PM Sagar Singh 
wrote:

> 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
>
> --
> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2B_kdjJHjeXMrrkSoexbDP_Lbws741Dy-fb7JD8cjhX0Sv4Fxg%40mail.gmail.com.