#26000: Error in tutorial05 Django1.9
---------------------------+-----------------------------------------------
     Reporter:  philbert   |      Owner:  nobody
         Type:  Bug        |     Status:  new
    Component:             |    Version:  1.9
  Documentation            |
     Severity:  Normal     |   Keywords:  AttributeError DetailView pk slug
 Triage Stage:             |  Has patch:  0
  Unreviewed               |
Easy pickings:  0          |      UI/UX:  0
---------------------------+-----------------------------------------------
 After following the directions here:
 https://docs.djangoproject.com/en/1.9/intro/tutorial05/

 These two tests return the same error:

 ERROR: test_detail_view_with_a_future_question
 (polls.tests.QuestionIndexDetailTests)

 ERROR: test_detail_view_with_a_past_question
 (polls.tests.QuestionIndexDetailTests)

 AttributeError: Generic detail view DetailView must be called with either
 an object pk or a slug.

 Discovered this suggestion but didn't manage to get it to work.
 Not sure what the correct solution should be.
 http://chriskief.com/2012/12/29/django-generic-detailview-without-a-pk-or-
 slug/

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

Reply via email to