Skip to content

Commit

Permalink
Setup all cassandra connections at startup
Browse files Browse the repository at this point in the history
+ remove Django 1.5 from tests
  • Loading branch information
r4fek committed Feb 5, 2016
1 parent ab545ff commit ff05184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo: false
services: cassandra

env:
- DJANGO_VERSION=1.5 CASS_DRIVER_NO_CYTHON=1
- DJANGO_VERSION=1.6 CASS_DRIVER_NO_CYTHON=1
- DJANGO_VERSION=1.7 CASS_DRIVER_NO_CYTHON=1
- DJANGO_VERSION=1.8 CASS_DRIVER_NO_CYTHON=1
Expand Down
7 changes: 3 additions & 4 deletions django_cassandra_engine/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django_cassandra_engine.utils import get_cassandra_connection
from django_cassandra_engine.utils import get_cassandra_connections


cassandra_connection = get_cassandra_connection()
if cassandra_connection is not None:
cassandra_connection.connect()
for _, conn in get_cassandra_connections():
conn.connect()

0 comments on commit ff05184

Please sign in to comment.