#19193: Save only one field to database which refereced to FieldFile
-------------------------------------+-------------------------------------
     Reporter:  3dflex@…             |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  duplicate
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 The reason this was originally closed is because you can do this:
 {{{
 obj.file.save(content.name, content, save=False)
 obj.save(update_fields=['file'])
 }}}
 This seems acceptable to me.

--
Ticket URL: <https://code.djangoproject.com/ticket/19193#comment:11>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/074.fb164596e595a4ad8e55daac640987d4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to