Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.9 compatibility #70

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion djangotoolbox/db/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from django.db.backends.util import format_number
try:
from django.db.backends.utils import format_number
except ImportError:
from django.db.backends.util import format_number


def decimal_to_string(value, max_digits=16, decimal_places=0):
Expand Down
5 changes: 4 additions & 1 deletion djangotoolbox/fields.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# All fields except for BlobField written by Jonas Haag <[email protected]>

from django.core.exceptions import ValidationError
from django.utils.importlib import import_module
from django.db import models
from django.db.models.fields.subclassing import Creator
from django.db.utils import IntegrityError
from django.db.models.fields.related import add_lazy_relation

try:
from django.utils.module_loading import import_string as import_module
except ImportError:
from django.utils.importlib import import_module

__all__ = ('RawField', 'ListField', 'SetField', 'DictField',
'EmbeddedModelField', 'BlobField')
Expand Down