Hi Lom, I would recommend the following: 1. Add all three buttons to your template 2. In your view, handle the form saving and then determine which button has been pressed. 3. Accordingly, redirect to the same url (for example, redirect("/ address/14") for viewing, redirect("/address/14/edit") for continue editing, or redirect("address/add") to add another).
For the redirect function, see: http://docs.djangoproject.com/en/dev/topics/http/shortcuts/ Hope this helps. Best regards, Wim On Nov 23, 3:46 pm, lom276 <lom...@gmail.com> wrote: > Hi all. > > I want to ask you if there is a best way to implement the actions > "Save and add another", "Save and continue editing" and "Save" for my > own forms. Is it possible to reuse the functionality from the Admin- > Interface or do I have to invent the wheel again and implement it > without reusing any existing code? > > Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.