问题描述:

I want to create a drop down list with values from the database and using this value to filter another list

class Venues(models.Model):

venue_Name = models.CharField(max_length=100)

place = models.CharField(max_length=50)

rent = models.IntegerField()

parking_area = models.IntegerField()

from this model I want to obtain a <select> tag, populated from a list of place with no duplicates, and to use the selected value in order to filter the Venues for that place.

相关阅读:
Top