1
如何在客戶端模型上創建一個Assigned Bankers的list_filter?使用list_filter從另一個模型中過濾FK
class AssignedBanker(models.Model):
client = models.ForeignKey(Client)
banker = models.ForeignKey(User)
# ...
class Client(models.Model):
account_name = models.CharField(max_length=100)
# ...
class ClientAdmin(MyModelAdmin):
list_filter = [ ??? ]