Sunday, December 4, 2016

Re: ImageField always calling update_dimensions_fields

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.

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 need to show your model code.
--
DR. 

--
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/d4c6723a-cbd0-4d48-80d1-aa67116aa830%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment