django-smart-selects

Django forms – limiting options from fields based on the answer of another field

Django forms – limiting options from fields based on the answer of another field Question: I have a Django form that receives entries from the users with information on a surgical procedure. Each Procedure will have only one (surgical) Technique and only one Diagnosis. Each Technique may be related to a limited number of Diagnosis, …

Total answers: 2

Chained Selects in Django [Module: django-smart-selects]

Chained Selects in Django [Module: django-smart-selects] Question: I’m trying to use the django-smart-selects Module in order to create dependent dropdown lists. I’ve followed the documentation and defined models in which I used the ‘ChainedForeignKey’ in order to define a link between my companies and my products. models.py class Company(models.Model): name = models.CharField(max_length=255) def __str__(self): return …

Total answers: 2