Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix #19809 -- Don't check if docs exist in DB.

The docs database is built from the JSON version of the docs, which
doesn't include special pages such as indexes.

This reverts commit 1af4480.

d51819e has a better and sufficient
fix.

Refs #18930.
  • Loading branch information...
commit b35966376ac8c1d8caf05a5e882dfb27325a1593 1 parent c125bfd
Aymeric Augustin authored February 13, 2013

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. 7  docs/views.py
7  docs/views.py
@@ -5,8 +5,7 @@
5 5
 import django.views.static
6 6
 from django.core import urlresolvers
7 7
 from django.http import Http404
8  
-from django.shortcuts import get_object_or_404, redirect, render_to_response
9  
-
  8
+from django.shortcuts import render_to_response, redirect
10 9
 from django.template import RequestContext
11 10
 from django.utils import simplejson
12 11
 
@@ -14,7 +13,7 @@
14 13
 
15 14
 from .context_processors import recent_release
16 15
 from .forms import DocSearchForm
17  
-from .models import DocumentRelease, Document
  16
+from .models import DocumentRelease
18 17
 from .utils import get_doc_root_or_404, get_doc_path_or_404
19 18
 
20 19
 
@@ -39,8 +38,6 @@ def document(request, lang, version, url):
39 38
     except UnicodeEncodeError:
40 39
         raise Http404
41 40
 
42  
-    get_object_or_404(Document,
43  
-        release__lang=lang, release__version=version, path=url)
44 41
     docroot = get_doc_root_or_404(lang, version)
45 42
     doc_path = get_doc_path_or_404(docroot, url)
46 43
 

0 notes on commit b359663

Please sign in to comment.
Something went wrong with that request. Please try again.