Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 063ca0a

Browse files
committed
v0.3.1
------ Fix for #8.
1 parent 2ff37b8 commit 063ca0a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

‎CHANGELOG.markdown‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v0.3.1
2+
------
3+
4+
Fix for https://github.com/phpdude/django-macros-url/issues/8.
5+
16
v0.3.0
27
------
38

‎README.markdown‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Django Macros URL](https://github.com/phpdude/django-macros-url/) v0.3.0 - Routing must be simple as possible
1+
# [Django Macros URL](https://github.com/phpdude/django-macros-url/) v0.3.1 - Routing must be simple as possible
22

33
Django Macros URL makes it easy to write (and read) URL patterns in your Django applications by using macros.
44

‎macrosurl/__init__.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import warnings
33
from distutils.version import StrictVersion
44

5-
VERSION = (0, 3, 0)
5+
VERSION = (0, 3, 1)
66
DJANGO_VERSION = None
77

88
_macros_library = {
@@ -73,10 +73,9 @@ def __unicode__(self):
7373

7474
def url(regex, view, kwargs=None, name=None, prefix=''):
7575
from django.conf.urls import url as baseurl
76+
global DJANGO_VERSION
7677

7778
if DJANGO_VERSION is None:
78-
global DJANGO_VERSION
79-
8079
from django import get_version
8180

8281
DJANGO_VERSION = get_version()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /