﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30030	SingleObjectMixin raises misleading AttributeError when called witout pk or slug	oliver	oliver	"{{{
class FooUpdateView(django.views.generic.UpdateView):
    model = Foo
    form_class = FooForm
    template_name = 'foo.html'
}}}
{{{
urlpatterns = [
    url(^'foo/$', FooUpdateView,as_view(), name='detal'),
]
}}}

In above code, If a user calls `foo/`, following AttributeError will be raised.
`Generic detail view FooUpdateView must be called with either an object pk or a slug in the URLconf.`

FooUpdateView raises the error even though it isn't generic detail view.
Also CreateView has this issue because it inherits from SingleObjectMixin."	Bug	closed	Generic views	dev	Normal	wontfix			Unreviewed	1	0	0	1	0	0
