Changes between Initial Version and Version 2 of Ticket #10179
- Timestamp:
- Feb 3, 2009, 5:32:13 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10179 – Description
initial v2 1 1 If you have a FileField declared like so: 2 {{{ 2 3 image_1 = models.FileField(upload_to=get_image_path, null=True, blank=True) 3 4 }}} 4 5 Then in django admin, the field becomes voluntary as it should. If you save a file in an optional field that works as expected. But if you come back to the item in the admin, and just hit 'save' without touching the optional file that is uploaded, the db record gets updated with a blank value for the FileField, effectively killing the connection with the file. 5 6