From 8f12ee97f30754449f1c57a703074d801a43df22 Mon Sep 17 00:00:00 2001 From: David Wolever Date: Fri, 3 Feb 2017 11:40:20 -0500 Subject: [PATCH] Bump to 0.5.1rc1 --- CHANGELOG.txt | 6 ++++++ README.rst | 5 +++++ django_switchuser/__init__.py | 8 +++++++- setup.py | 3 ++- 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 19e5d6e..cd62cdc 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,9 @@ +0.5.1 (2017-02-03) + * Use AnonymousUser for SuState.auth_user instead of crashing if + request.user is not set. + * Fix Django 1.10 compatibility (thanks @mokutsu; + https://github.com/wolever/django-switchuser/pull/6) + 0.5.0 (2016-08-11) * Lazy load su_state so it can safely be listed first in MIDDLEWARE_CLASSES diff --git a/README.rst b/README.rst index f363c52..2ca044b 100644 --- a/README.rst +++ b/README.rst @@ -17,6 +17,11 @@ Because ``django-switchuser`` was a quick project, it does make one assumption: not hold*: you'll need to submit a pull request (hint: take a look at ``django_switchuser/state.py``)... Sorry :( +Compatibility +------------- + +Tested with Django 1.8 through 1.10, should work with earlier Django versions too. + Installation ------------ diff --git a/django_switchuser/__init__.py b/django_switchuser/__init__.py index 09270db..c1f0dbb 100644 --- a/django_switchuser/__init__.py +++ b/django_switchuser/__init__.py @@ -1 +1,7 @@ -__version__ = (0, 5, 0) +def version2str(ver): + ver = map(str, ver) + return ".".join(ver[:3]) + "".join(ver[3:]) + +__version__ = (0, 5, 1, "rc", 1) + +version_str = version2str(__version__) diff --git a/setup.py b/setup.py index 3131bf2..e687726 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,8 @@ except IOError: long_description = "https://github.com/wolever/django-switchuser" -version = "%s.%s.%s" %django_switchuser.__version__ +version = django_switchuser.version_str + setup( name="django-switchuser", version=version,