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
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
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
3 matches
Mail list logo