我的模式如下:
class Manufacturers(models.Model):
name = models.CharField()
class Phones(models.Model):
manufacturer = models.ForeignKey(Manufacturers)
name = models.CharField()
class Prices(models.Model):
phone = models.ForeignKey(Phones)
price = models.DecimalFeild()
并且我已在行政部登记。 y
My problem is: In django s admin interface, When I add a price, I can select a phone from the dropdown list, But there are so many phones, So I want to select the manufacturer at first, then select the phone from the manufacturer s phones. How can I make this. Thanks very much.