Re: Field Select MasterDetail

2019-11-07 Thread Łukasz Bączek
W dniu 01.11.2019 o 11:57, Nijo Joseph pisze: Check django-autocomplete light. works, thank you ... On Friday, November 1, 2019 at 4:25:06 AM UTC+5:30, J-23 wrote: Hello, I am new to Django. I have a FormFault model, which has two foreign keys "BuildingOwner" and "Building", the

Re: Field Select MasterDetail

2019-11-01 Thread Nijo Joseph
Check django-autocomplete light. On Friday, November 1, 2019 at 4:25:06 AM UTC+5:30, J-23 wrote: > > Hello, > I am new to Django. I have a FormFault model, which has two foreign keys > "BuildingOwner" and "Building", the key "Building" depends on > "BuildingOwner" on the form, it gives me two f

Re: Field Select MasterDetail

2019-10-31 Thread Bruckner de Villiers
I have a similar challenge and I think that I shall tackle it by making the first level dependency outside the main model, i.e. Building should be a ForeignKey in BuildingOwner model. Then your main model shouldn’t have the a link to the Building model, but rather 2 ForeignKeys to BuildingOwner

Field Select MasterDetail

2019-10-31 Thread J-23
Hello, I am new to Django. I have a FormFault model, which has two foreign keys "BuildingOwner" and "Building", the key "Building" depends on "BuildingOwner" on the form, it gives me two fields of type Select (ComboBox) or is there a way in Django that the content of ComboBox changes depending