Associate classes with django-filters
Associate classes with django-filters Bonjour, I have a question regarding django-filters. My problem is: I have two classes defined in my models.py that are: class Volcano(models.Model): vd_id = models.AutoField("ID, Volcano Identifier (Index)", primary_key=True) [...] class VolcanoInformation(models.Model): # Primary key vd_inf_id = models.AutoField("ID, volcano information identifier (index)", primary_key=True) # Other attributes vd_inf_numcal = models.IntegerField("Number of calderas") [...] # Foreign key(s) vd_id = models.ForeignKey(Volcano, null=True, related_name='vd_inf_vd_id', on_delete=models.CASCADE) The two of them are linked throught the vd_id attribute. I want to develop a search tool that allows the user to search a volcano by its number of calderas (vd_inf_numcal). I am using django-filters and for now here's my fi...