#19193: Save only one field to database which refereced to FieldFile ----------------------------------------------+------------------------ Reporter: 3dflex@… | Owner: nobody Type: New feature | Status: new Component: Database layer (models, ORM) | Version: Severity: Normal | Keywords: django 1.5 Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+------------------------ django.db.models.fields.FieldFile:
def save(self, name, content, save=True): .... if save: self.instance.save(update_fields=[self.field.name]) .... or: def save(self, name, content, save=True, **kwargs) .... if save: self.instance.save(**kwargs) .... So, we get rid of re-saving fields when updating -- Ticket URL: <https://code.djangoproject.com/ticket/19193> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.