1
2
3
4
5
6
7
8
9
10
11
12
|
from django.conf.urls.defaults import *
from ump.bugs.models import Bug
info_dict = {
'queryset': Bug.objects.all(),
}
urlpatterns = patterns('django.views.generic.list_detail',
('^$', 'object_list', info_dict),
('^(?P<object_id>\d+)$', 'object_detail', info_dict)
)
|