I recently discovered a similar error that occurred while updating ImageField content using the django admin.
Error message: InMemoryUploadedFile object does not have attribute '_committed'
models.py:
class MyObject(models.Model): name = models.CharField(max_length=80, unique=True, db_index=True) slug = models.SlugField(max_length=80, unique=True, blank=False) some_image = ImageField(upload_to='uploads/some/')
This did not affect every model, I narrowed it down to this:
admin.py:
class MyObjectAdmin(admin.ModelAdmin):
The solution was to either change the set of administrator requests as follows:
admin.py:
class MyObjectAdmin(admin.ModelAdmin):
Or just completely get rid of it, since it is no longer needed / not needed.
source share