Ticket #15176: get_history_view_with_user_defined_queryset.patch

File get_history_view_with_user_defined_queryset.patch, 661 bytes (added by Tetsuya Morimoto, 14 years ago)

Patch to use self.queryset instead of model

  • options.py

     
    12301230            content_type__id__exact = ContentType.objects.get_for_model(model).id
    12311231        ).select_related().order_by('action_time')
    12321232        # 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))
    12341234        context = {
    12351235            'title': _('Change history: %s') % force_unicode(obj),
    12361236            'action_list': action_list,
Back to Top