generic view object_list

3 views
Skip to first unread message

paulh

unread,
Mar 23, 2007, 6:47:58 AM3/23/07
to Django users
The code of views.generic.list_detail. object_list has the following
line:
queryset = queryset._clone(),

Looking at the rest of the code I can't quite see why this 'cloning'
operation takes place, but I have probably missed something.

If the code were to read:
try: queryset = queryset._clone()
except: pass
It would appear to be possible to pass object_list a list, which would
be very useful.

Paul Hide

Reply all
Reply to author
Forward
0 new messages