Skip to content

Commit

Permalink
Upgrade neomodel to allow bolt+s URL schema (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
nossila authored Jan 26, 2021
1 parent 39d46a1 commit 4398851
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
6 changes: 5 additions & 1 deletion Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Version 0.0.6 2021-01-22
* Update neomodel 4.0.2 (required)
* Removed config option NEOMODEL_ENCRYPTED_CONNECTION

Version 0.0.5 2020-11-20
* Update project to use python 3(required) and neomodel 4.1.1(required)
* Update project to use python 3 (required) and neomodel 4.0.1 (required)

Version 0.0.4 2017-06-10
* Allow required fields to be excluded from forms when updating, closes #6
Expand Down
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ These are mapped to neomodel.config as django is started::
NEOMODEL_NEO4J_BOLT_URL = 'bolt://neo4j:neo4j@localhost:7687'
NEOMODEL_SIGNALS = True
NEOMODEL_FORCE_TIMEZONE = False
NEOMODEL_ENCRYPTED_CONNECTION = True
NEOMODEL_MAX_CONNECTION_POOL_SIZE = 50

Signals
Expand Down
2 changes: 1 addition & 1 deletion django_neomodel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
__email__ = '[email protected]'
__license__ = 'MIT'
__package__ = 'django_neomodel'
__version__ = '0.0.4'
__version__ = '0.0.6'


default_app_config = 'django_neomodel.apps.NeomodelConfig'
Expand Down
3 changes: 1 addition & 2 deletions django_neomodel/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class NeomodelConfig(AppConfig):
def read_settings(self):
config.DATABASE_URL = getattr(settings, 'NEOMODEL_NEO4J_BOLT_URL', config.DATABASE_URL)
config.FORCE_TIMEZONE = getattr(settings, 'NEOMODEL_FORCE_TIMEZONE', False)
config.ENCRYPTED_CONNECTION = getattr(settings, 'NEOMODEL_ENCRYPTED_CONNECTION', False)
config.MAX_CONNECTION_POOL_SIZE = getattr(settings, 'NEOMODEL_MAX_CONNECTION_POOL_SIZE', config.MAX_CONNECTION_POOL_SIZE)

def ready(self):
self.read_settings()
self.read_settings()
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='django_neomodel',
version='0.0.5',
version='0.0.6',
description='Use Neo4j with Django!',
long_description=open('README.rst').read(),
author='Robin Edwards',
Expand All @@ -12,7 +12,7 @@
license='MIT',
packages=find_packages(exclude=('tests',)),
keywords='neo4j django plugin neomodel',
install_requires=['neomodel>=4.0.1', 'pytz>=2020.1', 'django>=2.2'],
install_requires=['neomodel>=4.0.2', 'pytz>=2020.1', 'django>=2.2'],
tests_require=['pytest-django>=3.10.0'],
classifiers=[
"Development Status :: 4 - Beta",
Expand Down
1 change: 0 additions & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
NEOMODEL_NEO4J_BOLT_URL = os.environ.get('NEO4J_BOLT_URL', 'bolt://neo4j:foobar@localhost:7687')
NEOMODEL_SIGNALS = True
NEOMODEL_FORCE_TIMEZONE = False
NEOMODEL_ENCRYPTED_CONNECTION = False
NEOMODEL_MAX_POOL_SIZE = 50

TEMPLATES = [
Expand Down

0 comments on commit 4398851

Please sign in to comment.