Saturday, December 3, 2016

ImageField always calling update_dimensions_fields


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 model is loaded.

I'm on 1.9.9 if that makes a difference.

I see there was an old bug where this was addressed https://code.djangoproject.com/ticket/11084

It seems to be broken for me. Any ideas what is going on?

Thanks,

      Greg

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f546db3e-804f-402a-80bf-4dbf5c3d95f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment