Skip to content

Commit

Permalink
Fix 1.8 incompatibility
Browse files Browse the repository at this point in the history
Fix 1.8 incompatibility with deleted db.close_connection() internal API,
added backward compatibility with version < 1.8 (Django warning
compliant)
  • Loading branch information
phingage committed May 4, 2015
1 parent 71d6125 commit 405bbf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/management/commands/update_index.py
Expand Up @@ -13,8 +13,8 @@
except ImportError:
from django.db import close_connection as close_old_connections

warnings.warn('close_connection has been removed from Django 1.8+ '
'See https://docs.djangoproject.com/fr/1.8/releases/1.8/#features-removed-in-1-8')
warnings.warn('close_connection has been removed from Django 1.8+',
DeprecationWarning)

from django.core.management.base import LabelCommand
from django.db import reset_queries
Expand Down

0 comments on commit 405bbf8

Please sign in to comment.