#30030: SingleObjectMixin raises misleading AttributeError when called witout 
pk or
slug
-------------------------------+--------------------------------------
     Reporter:  oliver         |                    Owner:  oliver
         Type:  Bug            |                   Status:  closed
    Component:  Generic views  |                  Version:  master
     Severity:  Normal         |               Resolution:  wontfix
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

 * status:  assigned => closed
 * resolution:   => wontfix


Comment:

 The error message here has been unchanged since class-based views were
 first introduced in 0fcb09455729113f64a9873ca40bffd009b9bc5f#diff-
 e67e689265faab47842e64d6c8c564ddR40.

 The phrasing "generic detail view" captures not a specific view class but
 the group of all descendants of `SingleObjectMixin` (otherwise it would be
 `GenericDetailView`...) There are (I think) 11 of those. It reflects the
 `view.generic.detail` module naming. I think it's fine vs the proposed
 `that inherits from SingleObjectMixin` alteration.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30030#comment:3>
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/068.d2c92660095b5b156a75842f5411576e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to