简体   繁体   English

在 Django 上使用一个过滤器过滤多个 ajax 表

[英]Filter multiple ajax tables with one filter on Django

Hello and Thank you for your time, I recently started using django and need some help.您好,感谢您的宝贵时间,我最近开始使用 django 并需要一些帮助。 I have multiple ajax-tables rendered in an html template as in the documentation:如文档中所示,我在 html 模板中呈现了多个 ajax 表:

https://pypi.org/project/django-ajax-tables/ https://pypi.org/project/django-ajax-tables/

I have a table per view and render them in different divs of the same html page.我每个视图都有一个表格,并将它们呈现在同一 html 页面的不同 div 中。

All the models for this tables have a foreing_key of a model called Location, and all this child models have a date.此表的所有模型都有一个名为 Location 的 model 的foreing_key,并且所有这些子模型都有一个日期。

I want a filter for this tables where I can enter Location and start_date and on submit(or on type|select) all tables get updated.我想要这个表的过滤器,我可以在其中输入 Location 和 start_date 并在提交(或类型|选择)时更新所有表。 What would be the best way to do this on Django?在 Django 上执行此操作的最佳方法是什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM