Skip to content

Commit

Permalink
release v.1.1.1 to fix imports in certain edge cases
Browse files Browse the repository at this point in the history
The problem with `__import__` was discovered in ArmLayout  which could not load `..mixins` in `backends/basic.py`
when the Backend was loaded via `layout_helpers.py` when called with `{% load layout_helpers %}` from a template.
The error: "No module named mixins". It worked in Windows but not in Ubuntu.
  • Loading branch information
joncotton committed Sep 8, 2014
1 parent bf6e856 commit 2348fb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGES
=======

1.1.1 (2014-09-07)
------------------

- Fix relative imports in Python 2.6. All Djangos supporting 2.6 provide
``import_module``, which is more reliable than ``__import__``.


1.1.0 (2014-09-05)
------------------

Expand Down
3 changes: 1 addition & 2 deletions armstrong/utils/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
try:
from importlib import import_module
except ImportError: # PY26 # pragma: no cover
from functools import partial
import_module = partial(__import__, fromlist=[''])
from django.utils.importlib import import_module


# DEPRECATED: To be removed in Backends 2.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "armstrong.utils.backends",
"version": "1.1.0",
"version": "1.1.1",
"description": "Generic backend system to use throughout Armstrong"
}

0 comments on commit 2348fb8

Please sign in to comment.