Re: How can create multiple Model objects at the same time from the same form?

21 views
Skip to first unread message
Message has been deleted

Oladipupo Elegbede

unread,
Jul 10, 2017, 11:31:22 AM7/10/17
to django...@googlegroups.com
Do you mean creating 1-10 authors at once?
If that is the case, so you have the input for the three fields somewhere say an excel file, or a list of lists, etc?

If you do, I'd say loop through the document with the input venue and let it fill the parameter spaces dynamically.

Call a .save on it at the end of the loop.

Does this make sense?


On Jul 10, 2017 10:20 AM, "Denis Cosmin" <denis...@gmail.com> wrote:
I have a form Author that contains the field first_name, last_name, and email.

I want to be able to create 1-10 of them at the same time.
How may I do that?

I only need help in creating the form and the view.

--
Sincerely,
Denis Nutiu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKUfvexU6PyjSTG7ZZVoq%2BKqFw0sRKsGNk1x9WMXBKwdtOri-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Bledi

unread,
Jul 10, 2017, 5:18:32 PM7/10/17
to Django users
Reply all
Reply to author
Forward
0 new messages