from ninja import Schema
from typing import Dict, Any

class Origin(Schema):
    orgname: str
    orgaddr: str
    orgdetails: Dict[str, Any]     can you try this

On Sat, Aug 17, 2024 at 3:34 PM Krishnakant Mane <[email protected]>
wrote:

> Helo.
>
> I guess the question is obvious.
>
> I have json field in my postgresql table and django orm has no issues with
> it.
>
> But I am not able to find out oa way to use it in my schema in ninja.
> class orgin(Schema):
> orgname: str
> orgaddr: str
> orgdetails: json
> This does not work.
> Any hint?
> Regards.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f7a1f6a0-af73-4c6a-b5cb-50d2e08baf1a%40gmail.com
> <https://groups.google.com/d/msgid/django-users/f7a1f6a0-af73-4c6a-b5cb-50d2e08baf1a%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG1Fu%2Bz2wYNsKS52Viu64VDYmmaFPZ0tTAdWN6hp6FJWS5N0kg%40mail.gmail.com.

Reply via email to