Skip to content

Possible Issue for Django 1.6 in django_pgjson 0.3.0 #28

Open
@themaxxx

Description

@themaxxx

Hi,

in fields.py there is this import

"from django.utils.module_loading import import_string"

but in Django 1.6 import_string is not present.

My current solution is :
if django.get_version() >= "1.7":
from django.utils.module_loading import import_string
else:
from django.utils.module_loading import import_by_path as import_string

Please let me know your opinion. Thx a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions