override save method - 'ImageFile' object has no attribute '_committed'
问题 I override the save method like below, and get_thumbnails and save with sorl.. But get the error 'ImageFile' object has no attribute '_committed' class HotelPhotos(models.Model): hotel = models.ForeignKey(Hotel, related_name='photos') code = models.CharField(max_length=255) original = models.ImageField(upload_to="media") medium = models.ImageField(upload_to="media", null=True, editable=False) thumbnail = models.ImageField(upload_to="media", null=True, editable=False) def save(self, *args, *