I have a model
class Anh_chi_tiet(models.Model):
du_an = models.ForeignKey(Du_an)
title = models.CharField(max_length=120)
url =
height_field
represents a property of your model which is used to store the height.
class Anh_chi_tiet(models.Model):
url_height=models.PositiveIntegerField()
url_width=models.PositiveIntegerField()
url = models.ImageField(upload_to='images', height_field='url_height', width_field='url_width')
Notice height_field='url_height'