#22540: .save() called in multiple "creation" queryset functions
----------------------------------------------+----------------------
     Reporter:  craig.labenz@…                |      Owner:  nobody
         Type:  Cleanup/optimization          |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  master
     Severity:  Normal                        |   Keywords:  creation
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  1                             |      UI/UX:  0
----------------------------------------------+----------------------
 Both `create()` and `_create_object_from_params()` (which is obviously
 called by `get_or_create()`), have raw calls to `save()`. It would be nice
 if one of those two low level creation functions used the other so
 additional logic pinned to `create()` by custom managers would also be
 available to `get_or_create()`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22540>
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/065.6bfcb924ae588e59b4f49a0e0c28aee1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to