submit buttons in django

76 views
Skip to first unread message

Harjot Mann

unread,
Mar 19, 2014, 11:48:22 PM3/19/14
to django...@googlegroups.com
I have a form in my app and after entering data into that form I
submit that form but I want an another submit button like "Submit and
Add Event", so that after clicking on it it can redirect to an another
form. Please help me that how can I do this?

--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
Daily Dairy: http://harjotmann.wordpress.com/daily-diary/

Venkatraman S

unread,
Mar 20, 2014, 6:42:40 AM3/20/14
to django...@googlegroups.com
Add the required view to redirect once this button is clicked.

-Venkat


--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB0GQhBN_k%3Db8NHf8L4oZ1EWr-uya%3DhbotCZPGNam6ezy77vAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Harjot Mann

unread,
Mar 20, 2014, 8:30:52 AM3/20/14
to django...@googlegroups.com
On Thu, Mar 20, 2014 at 4:12 PM, Venkatraman S <venk...@gmail.com> wrote:
> Add the required view to redirect once this button is clicked.


Will the data be saved into database with this method?

Satinderpal Singh

unread,
Mar 22, 2014, 11:02:17 AM3/22/14
to django...@googlegroups.com


On Mar 20, 2014 9:19 AM, "Harjot Mann" <harjotm...@gmail.com> wrote:
>
> I have a form in my app and after entering data into that form I
> submit that form
but I want an another submit button like "Submit and
> Add Event", so that after clicking on it it can redirect to an another
> form. Please help me that how can I do this?
>

What you exactly wish to do, as you submit the first form, it saves the data to database, you simply need another button, which can redirect to the same form, or to any another form.

But if you need not to submit the data from first form and wishes to redirect the other form then you have to follow another approach.

--
Satinderpal Singh

Reply all
Reply to author
Forward
0 new messages