﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10404	ImageField: height_field and width_field option sometimes doesn't work	Lehych	Jacob	"I had a problem: height_field and width_field always = 0 in some models, after uploading any image file.
Problem was in fields order: if height_field and width_field goes before image field - this thing happends.

I appears in models save method.
/django/db/models/base.py : 378 (actual for revision: 9962)

{{{
values = [(f, None, f.get_db_prep_save(raw and getattr(self, f.attname) or f.pre_save(self, False))) for f in non_pks]
}}}

here all fields values are calculated (''get_db_prep_save'') and copy to ''values''. So, if in models description ImageField goes before height and width fields, everything is fine. But if ImageField goes after this fields, all pic size calculation still in fields but not in values list."		closed	File uploads/storage	dev		fixed	ImageField, height_field, width_field	Armin Ronacher	Accepted	1	0	0	0	0	0
