#20429: Implementation of update_or_create
----------------------------------------------+--------------------
     Reporter:  tunixman                      |      Owner:  nobody
         Type:  New feature                   |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  master
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  1
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 It seems handy to have a function that would update an existing record in
 the database with the values of defaults if one is found, instead of just
 returning a flag to the caller like get_or_create does. We have a codebase
 using this, but it may also be useful to the world at large. The attached
 implementation makes a passing effort at not updating too much of the
 model, but should probably actually restrict itself to just fields and
 related objects instead of any attribute.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20429>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to