#23482: SingleObjectMixin.get_object() should allow lookup by BOTH pk and slug
-------------------------------------+-------------------------------------
     Reporter:  jdufresne            |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Generic views        |                  Version:  master
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
    Has patch:  1                    |  checkin
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

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


Comment:

 In [changeset:"8c581ff39475c1b3b25d60945cc1c73a7f8eb1be"]:
 {{{
 #!CommitTicketReference repository=""
 revision="8c581ff39475c1b3b25d60945cc1c73a7f8eb1be"
 Fixed #23482 -- Added SingleObjectMixin.query_pk_and_slug

 Enabling the attribute causes get_object() to perform its lookup
 using both the primary key and the slug.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23482#comment:6>
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/067.af252851a6d6002be776d5ec3ca8561d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to