Django admin, 'Save as new' option, duplicate m2m relations

238 views
Skip to first unread message

Gheorghe Chirica

unread,
Dec 10, 2013, 3:57:23 AM12/10/13
to django-d...@googlegroups.com
Hi.

I have a simple model which have few m2m relations.

Now, I enabled option in admin panel to duplicate model so, "Save as new" option.

It saves my model as a new one, no problem  with that.

But I want to duplicate m2m relations I have for original model, so new model will have new m2m relations inserted.

I don't need the new model object to refer the same m2m as original one, because when I "save as new" I change some data

and I need new entries for this m2m relations.


Can someone guide me how can i achieve this and where to look for it.


Thx.

Tim Graham

unread,
Dec 10, 2013, 7:29:09 AM12/10/13
to django-d...@googlegroups.com
Hi, django-developers is for discussing the development of Django itself, not for answering user queries. If you have a "how do I" question, please direct it to django-users. Thanks!

Daniele Procida

unread,
Dec 10, 2013, 7:34:09 AM12/10/13
to Django Developers
Hi Gheorghe. You'll get answers to your questions on the django-users email list, <django-d...@googlegroups.com> - the web interface is <https://groups.google.com/forum/#!forum/django-users>.

The list you've posted to is django-developers, an email list is for the discussion of the development of Django itself.

You might also find helpful the #django IRC channel on irc.freenode.net.

I hope that helps,

Daniele

Gheorghe Chirica

unread,
Dec 16, 2013, 12:38:34 AM12/16/13
to django-d...@googlegroups.com
Ok, will continue on django users group, thx.   
Reply all
Reply to author
Forward
0 new messages