projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f49e1b8
)
Pdf wrapper should not inherit from django model
author
Magnus Hagander
<magnus@hagander.net>
Fri, 23 Mar 2018 13:16:23 +0000
(14:16 +0100)
committer
Magnus 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
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/docs/views.py
b/pgweb/docs/views.py
index 904057ce716910cb19cf8fede538e5562e4960fa..b3a12e23238e8d2b4f829a0cd37e0de5f8f7bb16 100644
(file)
--- a/
pgweb/docs/views.py
+++ b/
pgweb/docs/views.py
@@
-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.