我想扩展ForeignKeyRawIdWidget,所以我希望能够使用它而不需要设置raw_id_fields。 随着follwoing我没有得到一个错误,但我看不出有什么影响: # models.py
class Product(models.Model):
...
class GroupProduct(Product):
...
products = mod
我想通过外键属性在管理员更改列表中添加过滤器,例如, class Address(model.Models):
street = models.CharField(max_length=25)
city = models.CharField(max_length=25)
country = models.CharField(max_length=25)
c