Hi, The admin first calls obj.save(), then it saves the related data.
You could try putting your logic in ModeAdmin.save_related() https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_related Collin On Monday, January 12, 2015 at 5:00:54 PM UTC-5, Tobias Dacoir wrote: > > Thanks for the links. It might be related to that bug. In my scripts I > added another save() and then it works of course and as for the Admin > Panel, until I have a solution I put a message into the help text that > users have to click 'save and continue' first and then 'save' afterwards. > Then it's fine as well. Phew at least the workaround was quickly > implemented, still I spend at least 1 hour on figuring out what's going > wrong. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1a648722-0981-4f38-a2dc-3529225dba85%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.