简体   繁体   中英

Django - Multiple instance of same model in single form

I want to display multiple instance of same object in a form and collect all the data in single click. One example I can think of is let say, I want to take attendance of fifty students in my db. I need to present the user with all the students and a check box so as to mark, who all are present and submit the result at end.

Note: I am fairly new to Django, I am okay with models and forms as a beginner.

Django的表单集正是为此目的而创建的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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