Pdf wrapper should not inherit from django model
authorMagnus Hagander <magnus@hagander.net>
Fri, 23 Mar 2018 13:16:23 +0000 (14:16 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 23 Mar 2018 13:16:23 +0000 (14:16 +0100)
It was already storing the version as a field, the inheriting from the
actual model was never used. Remove it, since newer django tries to
access a table based on the class name..

pgweb/docs/views.py

index 904057ce716910cb19cf8fede538e5562e4960fa..b3a12e23238e8d2b4f829a0cd37e0de5f8f7bb16 100644 (file)
@@ -88,7 +88,7 @@ def root(request):
                'versions': versions,
        })
 
-class _VersionPdfWrapper(Version):
+class _VersionPdfWrapper(object):
        """
        A wrapper around a version that knows to look for PDF files, and
        return their sizes.