On Wed, 2009-08-12 at 15:55 -0700, Daniel Roseman wrote:
> On Aug 12, 10:40 pm, Ali Rıza KELEŞ <ali.r.ke...@gmail.com> wrote:
> > In admin interface, in editing section of a model, I need a button to
> > save as a new entry. There are four button at the end of the editing
> > form.
> > - Delete,
> > - Save and Add New,
> > - Save And Continue Editing,
> > - Save.
> >
> > I want to save the currently editing entry as a new entry.
> >
> > For example:
> > entry is:
> > id=3, title= 'Some title', text= 'Some text'.
> >
> > I try to edit and changed nothing and press the save as button, a new
> > entry would be created
> >
> > id=4, title= 'Some title', text= 'Some text'.
> >
> > Of course it does not matter to change o not to change entry. It is
> > important to save as a new entry.
> > How can I success?
> >
> > Thanks.
> >
> > --
> > Ali Rıza
> 
> The `save_as` option to the ModelAdmin class does exactly that. See
> here:
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_as
> --
> DR.

Really so easy.. Thanks for reply.

And I would like to ask another question. If I would to save this new
entry to another db table, so how? Like modified version of this
original entry. 


> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to