Sunday, September 4, 2011

Re: save_as only saves data showing on the form

save_model()   ???
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model

On Sat, Sep 3, 2011 at 9:45 PM, zobbo <ian.j.cottee@gmail.com> wrote:
I have a very extensive model and and an admin form which contains key
fields from that model. Other data is editedin a different form.

I need to be able to copy data from a record to a new record so I set
save_as to be True in my admin. However, that does not copy all data
from the model, just data that is handled by the admin form.

I need to find somewhere, where I can catch the "save as" after the
new record is created so I can copy over the other fields and related
record sets from the original record. I can't find such a place. Any
suggestions?

Ian

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment