Re: Execute code after the model with m2m is completely saved

2011-01-17 Thread Vovk Donets
2011/1/17 Martin Tiršel > I found two ways how to do it: > > *) m2m_changed signal - this is the best way > > *) save_model(self, request, obj, form, change) method for ModelAdmin - obj > has current relations, form contains the new relations > > Martin > > The third way would be creating a custo

Re: Execute code after the model with m2m is completely saved

2011-01-17 Thread Martin Tiršel
I found two ways how to do it: *) m2m_changed signal - this is the best way *) save_model(self, request, obj, form, change) method for ModelAdmin - obj has current relations, form contains the new relations Martin On Sun, 16 Jan 2011 19:33:09 +0100, Martin Tiršel wrote: Hello, I am

Execute code after the model with m2m is completely saved

2011-01-16 Thread Martin Tiršel
Hello, I am using (only) django admin to insert data and have: class ImageSize(models.Model): ... class Image(models.Model): size = models.ManyToManyField(ImageSize) ... I need to save original image that have been uploaded (this is ok) and then make resized copies depending on s