简体   繁体   中英

Django Form Field for Copying and Pasting Vertical List

I am in the process of updating a project so that, in one of the apps, the user can copy a vertical list of values from a text/excel file/[file format] into a form. I want the form to hold as many values as the user will paste (so hopefully it will be dynamic in length).

When the user submits the form, my views.py will process the data. What field type should I use to do this? (If it is even possible to do this)

Figured it out! I just used a Textarea instead of a TextField.

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