Re: ImageField always calling update_dimensions_fields

2016-12-04 Thread ggilley
What I see is that when I load my page, it calls update_dimension_fields for every image. The model is simple. class Photo(models.Model): width = models.PositiveIntegerField(blank=True, null=True, editable=False, default="0") height = models.PositiveIntegerField(blank=True, null=True, e

Re: ImageField always calling update_dimensions_fields

2016-12-04 Thread Daniel Roseman
On Sunday, 4 December 2016 00:47:06 UTC, ggi...@gmail.com wrote: > > > I needed to get to the width and height of an image. After discovering > that doing so on an ImageField loads the file, I added width_field and > height_field to my model. > > I did a migration and starting using the new model

ImageField always calling update_dimensions_fields

2016-12-03 Thread ggilley
I needed to get to the width and height of an image. After discovering that doing so on an ImageField loads the file, I added width_field and height_field to my model. I did a migration and starting using the new model. However, it *always* seems to call update_dimension_fields every time the