Rename Storage Class (#10)

* Rename Storage Class

* bump version to 0.1.0
This commit is contained in:
Tyrel Souza 2016-12-08 15:43:34 -05:00 committed by GitHub
parent 62a5118a7e
commit 3f7d333d98
6 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ from .models import DBFile
L = logging.getLogger(__name__) L = logging.getLogger(__name__)
class DBStorage(Storage): class DBFileStorage(Storage):
""" """
This is the Test Database file upload storage backend. This is the Test Database file upload storage backend.
This is used so that in our test database we always have uploaded This is used so that in our test database we always have uploaded

View File

@ -4,7 +4,7 @@
# You can set these variables from the command line. # You can set these variables from the command line.
SPHINXOPTS = SPHINXOPTS =
SPHINXBUILD = sphinx-build SPHINXBUILD = sphinx-build
SPHINXPROJ = DjangoDBStorage SPHINXPROJ = DjangoDBFileStorage
SOURCEDIR = . SOURCEDIR = .
BUILDDIR = _build BUILDDIR = _build

View File

@ -54,9 +54,9 @@ author = u'Tyrel Souza'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = u'0.0.4' version = u'0.1.0'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = u'0.0.4' release = u'0.1.0'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

View File

@ -9,7 +9,7 @@ if "%SPHINXBUILD%" == "" (
) )
set SOURCEDIR=. set SOURCEDIR=.
set BUILDDIR=_build set BUILDDIR=_build
set SPHINXPROJ=DjangoDBStorage set SPHINXPROJ=DjangoDBFileStorage
if "%1" == "" goto help if "%1" == "" goto help

View File

@ -10,7 +10,7 @@ except ImportError:
setup( setup(
name="django-dbfilestorage", name="django-dbfilestorage",
version="0.0.4", version="0.1.0",
description="Database backed file storage for testing.", description="Database backed file storage for testing.",
long_description="Database backed file storage for testing. Stores files as base64 encoded textfields.", long_description="Database backed file storage for testing. Stores files as base64 encoded textfields.",
author="Tyrel Souza", author="Tyrel Souza",

View File

@ -8,7 +8,7 @@ from django.test import TestCase, Client
from django.test.utils import override_settings from django.test.utils import override_settings
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__)) PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
DEFAULT_FILE_STORAGE = "dbfilestorage.storage.DBStorage" DEFAULT_FILE_STORAGE = "dbfilestorage.storage.DBFileStorage"
@override_settings(DEFAULT_FILE_STORAGE=DEFAULT_FILE_STORAGE) @override_settings(DEFAULT_FILE_STORAGE=DEFAULT_FILE_STORAGE)