Re: Admin site - prepopulating field based on foreign key

2016-11-07 Thread dodrian
Thanks, smart-selects has shown me how to do exactly what I wanted. On Friday, 4 November 2016 10:36:58 UTC-5, Derek wrote: > > You need a third-party app e.g. > > https://github.com/digi604/django-smart-selects > > > On Thursday, 3 November 2016 19:21:14 UTC+2, dod...@gmail.com wrote: >> >> I'm h

Re: Admin site - prepopulating field based on foreign key

2016-11-04 Thread Rafael E. Ferrero
Or you can filter the select with this Rafael E. Ferrero 2016-11-04 12:36 GMT-03:00 Derek : > You need a third-party app e.g. > > https://github.com/digi604/django-smart-selects

Re: Admin site - prepopulating field based on foreign key

2016-11-04 Thread Derek
You need a third-party app e.g. https://github.com/digi604/django-smart-selects On Thursday, 3 November 2016 19:21:14 UTC+2, dod...@gmail.com wrote: > > I'm having trouble with my admin site, would appreciate any pointers. > > I have these three models in my database with relationships as shown:

Admin site - prepopulating field based on foreign key

2016-11-03 Thread dodrian
I'm having trouble with my admin site, would appreciate any pointers. I have these three models in my database with relationships as shown: class Customer(models.Model): name=models.CharField(max_length=30) class Location(models.Model): name=models.CharField(max_length=30) customer = model