Skip to content

Commit

Permalink
Bump to 0.5.1rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
wolever committed Feb 3, 2017
1 parent a79770b commit 8f12ee9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------

Expand Down
8 changes: 7 additions & 1 deletion django_switchuser/__init__.py
Original file line number Diff line number Diff line change
@@ -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__)
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8f12ee9

Please sign in to comment.