Ticket #15176: get_history_view_with_user_defined_queryset.patch
File get_history_view_with_user_defined_queryset.patch, 661 bytes (added by , 14 years ago) |
---|
-
options.py
1230 1230 content_type__id__exact = ContentType.objects.get_for_model(model).id 1231 1231 ).select_related().order_by('action_time') 1232 1232 # If no history was found, see whether this object even exists. 1233 obj = get_object_or_404( model, pk=unquote(object_id))1233 obj = get_object_or_404(self.queryset(request), pk=unquote(object_id)) 1234 1234 context = { 1235 1235 'title': _('Change history: %s') % force_unicode(obj), 1236 1236 'action_list': action_list,