diff options
Diffstat (limited to 'pgweb/docs/struct.py')
-rw-r--r-- | pgweb/docs/struct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgweb/docs/struct.py b/pgweb/docs/struct.py index aaf12b7c..c302886b 100644 --- a/pgweb/docs/struct.py +++ b/pgweb/docs/struct.py @@ -6,7 +6,7 @@ def get_struct(): now = date.today() currentversion = Version.objects.get(current=True) - for d in DocPage.objects.all(): + for d in DocPage.objects.all().extra(where=['version in (select tree from core_version where supported)']): yield ('docs/%s/static/%s' % (d.version, d.file), None) #FIXME ^ do something smart with priorities on older |