I want to set up object level permission in django admin site for staffs. But it is dynamic. For instance, a user having assigned many PIN Code. He can only access vendors who are working in those PIN Code. In future, user can be assigned more PIN Codes. What is the best way to achieve this?
Help. Three models here. C is inherited from B. And B is inherited from A. All of them are material tables. Then I wrote a simple API with only one line to create a new C object based on coming request data. And then I use JMeter to test it, 100 threads in 2 secs. More than fifty failed because of MySQL deadlock. Anyway to solve it? Atomic request is turned on.