【发布时间】:2019-02-01 19:21:09
【问题描述】:
我正在使用 django-filters lib https://django-filter.readthedocs.io/en/master/index.html。我需要在我的过滤器中创建链接选择下拉列表。 我知道如何使用简单的 django-forms 来制作它,例如https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html。 当用户选择地区时,我需要显示该地区的城市吗?有人知道如何构建这样的过滤器吗?
【问题讨论】:
标签: python django django-filter