Re: Select from the dropdown the object car that has the field is_active

2020-11-15 Thread Apolo Machine
ct from the dropdown the object car that > has the field is_active = true, > how can i acomplish that? > > class Car(models.Model): > brand = models.charfield(...) > is_active= models.BooleanField(default=True) > > class Service(models.Model): > car = models.Fore

Re: Select from the dropdown the object car that has the field is_active

2020-11-15 Thread David Nugent
On 15 Nov 2020, at 23:27, Apolo Machine wrote: > > hello, i'm a newbie using django and i have a problem that cannot solve. > In my createview i need to select from the dropdown the object car that has > the field is_active = true, > how can i acomplish that? > &

Select from the dropdown the object car that has the field is_active

2020-11-15 Thread Apolo Machine
hello, i'm a newbie using django and i have a problem that cannot solve. In my createview i need to select from the dropdown the object car that has the field is_active = true, how can i acomplish that? class Car(models.Model): brand = models.charfield(...) is_a