# Using UpdateView to create a new object from an existing one

**URL:** <https://forum.djangoproject.com/t/using-updateview-to-create-a-new-object-from-an-existing-one/44299>\
**Category:** Forms & APIs\
**Created:** [February 26, 2026, 9:38am UTC](https://forum.djangoproject.com/t/using-updateview-to-create-a-new-object-from-an-existing-one/44299 "2026-02-26T09:38:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![piscvau](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/piscvau/32/5960_2.png) [@piscvau](https://forum.djangoproject.com/u/piscvau)\
**Post date:** [February 26, 2026, 9:38am UTC](https://forum.djangoproject.com/t/using-updateview-to-create-a-new-object-from-an-existing-one/44299/1 "2026-02-26T09:38:08Z")

</div>

Hello

I have a very complex Model for a StitchTechnique. I would like to offer the possibility to create a new object by modifying an existing instance. I have a view which has 2 different submit buttons. one is to update existing object, the other one is to save the object as a new one.

I have used the updateView and pass it the instance of the object to edit. I have a set of related modelForms and formsets which correspond to the Model for a stitchtechnique. I have automatic generation of id\_field.

I have noticed that there is a save\_as\_new argument for InLineFormsets which seems to correspond to what I need. But is does not exist for Model form. SO I suspect I must handle it in my code. Should I just ignore the id in the post data and also all foreign key fields and just set them to None?

I thank you for your answer.

---

<div class="post-metadata">

**Author:** ![ShaheedHaque](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/shaheedhaque/32/17659_2.png) [@ShaheedHaque](https://forum.djangoproject.com/u/ShaheedHaque)\
**Post date:** [February 26, 2026, 9:46am UTC](https://forum.djangoproject.com/t/using-updateview-to-create-a-new-object-from-an-existing-one/44299/2 "2026-02-26T09:46:28Z")

</div>

You might want to refer to the section on copying at [Making queries | Django documentation | Django](https://docs.djangoproject.com/en/6.0/topics/db/queries/#copying-model-instances) .

---

<div class="post-metadata">

**Author:** ![piscvau](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/piscvau/32/5960_2.png) [@piscvau](https://forum.djangoproject.com/u/piscvau)\
**Post date:** [February 28, 2026, 12:35pm UTC](https://forum.djangoproject.com/t/using-updateview-to-create-a-new-object-from-an-existing-one/44299/3 "2026-02-28T12:35:46Z")

</div>

Thanks for your answer. But this relates to the model. My question is about the form. Because the get creates a form with an instance keyword arguments id fields etc are present in the post data. So I believe I must erase some of those data in the post or probably better ignore some fields in the form cleaning. AN my question is which fields should I ignore. I suspect id and all relation fields should be ignored in the form fields cleaning. But I would appreciate having confirmation form experts.

---

<div class="post-metadata">

**Author:** ![shubh-gitpush](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/shubh-gitpush/32/31706_2.png) [@shubh-gitpush](https://forum.djangoproject.com/u/shubh-gitpush)\
**Post date:** [March 2, 2026, 5:01am UTC](https://forum.djangoproject.com/t/using-updateview-to-create-a-new-object-from-an-existing-one/44299/4 "2026-03-02T05:01:36Z")

</div>

I think you should let Django ORM handle duplication. Manually modifying ID or foreign keys in POST data is risky and can break relationships between models and formsets.
