Changes between Initial Version and Version 1 of Ticket #19193
- Timestamp:
- Oct 26, 2012, 1:40:59 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19193
- Property Triage Stage Unreviewed → Design decision needed
-
Ticket #19193 – Description
initial v1 1 django.db.models.fields.FieldFile:1 `django.db.models.fields.FieldFile`: 2 2 3 {{{ 3 4 def save(self, name, content, save=True): 4 5 .... … … 6 7 self.instance.save(update_fields=[self.field.name]) 7 8 .... 9 }}} 8 10 9 11 or: 10 12 13 {{{ 11 14 def save(self, name, content, save=True, **kwargs) 12 15 .... … … 14 17 self.instance.save(**kwargs) 15 18 .... 19 }}} 16 20 17 21 So, we get rid of re-saving fields when updating