#22724: Improve SingleObjectMixin
--------------------------------------+------------------------------------
     Reporter:  tomc                  |                    Owner:  msoedov
         Type:  Cleanup/optimization  |                   Status:  assigned
    Component:  Generic views         |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  1
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by mjtamlyn):

 Proposed patch was significantly backwards incompatible (see my comments
 on the PR). It however should be possible to refactor `get_object` itself
 to make a better subclassing experience, possibly by adding an inner
 `get_from_queryset` method, or by changing the behaviour when no slug or
 pk is provided.

--
Ticket URL: <https://code.djangoproject.com/ticket/22724#comment:8>
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/062.214c006baec30b2e31a49a4969c9dec2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to