post_save strange behavior (at least to me!)

2014-12-05 Thread Victor
Django 1.7.1 and Apache2 in a production context. I have the following situation = models.py class Items(models.Model): code = models.CharField(primary_key=True,db_index=True,unique=True,max_length=20,db_column='code') description = models.CharField(max_length=255) su

Re: post_save strange behavior (at least to me!)

2014-12-06 Thread Collin Anderson
Hi Vittorio, ManyToMany fields are technically stored in a separate table in the database and are technically a separate "record" from the parent model. The parent model needs to be saved first (firing the post_save signal), and only then can the ManyToMany values be updated. I'd override the