Filter data in django admin inline create view

59 Views Asked by At

this is my first post here and im hoping to find a solution for my situation:

The thing is... I got a admin inline who show the relate info of a model. by this, i can see which contract_product belongs to current client.

When im creating a new object in the inline, aka click in the following button enter image description here

I cant see a list of option as follow: enter image description here

The problem is... the client must see only their products, but here i see all products for all type of clients?

PS: product and client has a direct relationship.

Hope someone can understand my problem and helps me!

Theres a kt if thing i've tried far now, but nothing succesful to talk about

0

There are 0 best solutions below