X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/d6c4fb901ad64f828287556a26daab52449dab32..42faac096df5479bd7747d9068eb88d1410d6d34:/apps/wiki/models.py diff --git a/apps/wiki/models.py b/apps/wiki/models.py index 94010419..8ec4d32c 100644 --- a/apps/wiki/models.py +++ b/apps/wiki/models.py @@ -67,5 +67,5 @@ class Document(object): return result -# Every time somebody says "let's have a global variable", God kills a kitten. -storage = DocumentStorage(settings.REPOSITORY_PATH) +def getstorage(): + return DocumentStorage(settings.REPOSITORY_PATH)