Re: ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread RANGA BHARATH JINKA
Hi, Go through this. This will help you. The error is because of foreign key. https://stackoverflow.com/questions/37839867/django-error-cannot-assign-must-be-an-instance On Thu, Sep 3, 2020 at 8:46 PM Abdu-H wrote: > Hello, > > I am working on an app where car owner will list their car and

ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread Abdu-H
Hello, I am working on an app where car owner will list their car and drivers interested in renting them will make a request to rent the cars… i basically have three models the *users*(car owners and drivers) *car* listed by owners, and *rent, *i have a listView to list all the car

ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread Abdulhameed Giwa
Hello, I am working on an app where car owners will list their car and drivers interested in renting them will make a request to rent the cars… i basically have three models the *users*(car owners and drivers) *car* listed by owners, and *rent, *i have a listView to list all the car available